x11: Fix emits of additional ANSI chars from non-standard mods (#4991)
This ensures that ANSI chars won't be emitted when pressing non-standard modifier keys. Fixes #4975
This commit is contained in:
1 parent
21c281ab17
commit
94fbf53d20
1 file changed
+7
-1
@@ -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
|
||||
// <https://github.com/wezterm/wezterm/issues/4910> for context.
|
||||
match fallback_feed {
|
||||
|
||||
Reference in new issue
Block a user