diff --git a/window/src/os/x11/keyboard.rs b/window/src/os/x11/keyboard.rs index 1828b2645..78aa6dc68 100644 --- a/window/src/os/x11/keyboard.rs +++ b/window/src/os/x11/keyboard.rs @@ -396,7 +396,13 @@ impl KeyboardWithFallback { } _ => sym, } - } else if kc.is_none() && key_code_from_sym.is_none() { + } else if kc.is_none() + && key_code_from_sym.is_none() + // Make sure that non-standard modifier keys are not mapped + // to a fallback because that would result in extra emits of + // the original ANSI characters + && !xsym.is_modifier_key() + { // Not sure if this is a good idea, see // for context. match fallback_feed {