keys: only synthesize ctrl+uppercase from ctrl+shift+key if actually uppercase

This prevents the ctrl+shift+space assignment from also binding
ctrl+space
This commit is contained in:
Wez Furlong committed 2022-04-03 06:02:19 -07:00
1 parent 33e640bb98
commit 8d699fccb7
1 file changed
+5 -3
+5 -3
View File
@@ -422,9 +422,11 @@ impl InputMap {
// is reserved for the window manager.
// This bit synthesizes those.
items.push((key.clone(), ctrl_shift));
items.push((ukey.clone(), ctrl_shift));
items.push((ukey.clone(), Modifiers::CTRL));
} else if $mod.contains(Modifiers::SHIFT) {
if ukey != key {
items.push((ukey.clone(), ctrl_shift));
items.push((ukey.clone(), Modifiers::CTRL));
}
} else if $mod.contains(Modifiers::SHIFT) && ukey != key {
items.push((ukey.clone(), $mod));
items.push((ukey.clone(), $mod - Modifiers::SHIFT));
}