fix(wayland/keyboard): fix modifier key not working properly for some keyboard layouts
Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
@@ -53,7 +53,8 @@ impl ModifierState {
|
|||||||
input_event_codes::KEY_LEFTCTRL!() | input_event_codes::KEY_RIGHTCTRL!() => {
|
input_event_codes::KEY_LEFTCTRL!() | input_event_codes::KEY_RIGHTCTRL!() => {
|
||||||
mods |= 4
|
mods |= 4
|
||||||
}
|
}
|
||||||
input_event_codes::KEY_LEFTALT!() | input_event_codes::KEY_RIGHTALT!() => mods |= 8,
|
input_event_codes::KEY_LEFTALT!() => mods |= 8,
|
||||||
|
input_event_codes::KEY_RIGHTALT!() => mods |= 128,
|
||||||
input_event_codes::KEY_LEFTMETA!() | input_event_codes::KEY_RIGHTMETA!() => {
|
input_event_codes::KEY_LEFTMETA!() | input_event_codes::KEY_RIGHTMETA!() => {
|
||||||
mods |= 64
|
mods |= 64
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user