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:
1 parent
33e640bb98
commit
8d699fccb7
1 file changed
+5
-3
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user