fix(engine): fix bad handling of Iso Level3 Shift on Spanish layouts. Fix #802

This commit is contained in:
Federico Terzi 2021-10-22 19:58:26 +02:00
parent cd89915525
commit 4204bcf5ea

View File

@ -191,7 +191,7 @@ fn is_event_of_interest(event_type: &EventType) -> bool {
// In hex, they have the byte 3 = 0xfe // In hex, they have the byte 3 = 0xfe
// See list in "keysymdef.h" file // See list in "keysymdef.h" file
if cfg!(target_os = "linux") { if cfg!(target_os = "linux") {
if let Key::Other(raw_code) = &keyboard_event.key { if let (Key::Other(raw_code), None) = (&keyboard_event.key, &keyboard_event.value) {
if (65025..=65276).contains(raw_code) { if (65025..=65276).contains(raw_code) {
return false; return false;
} }