From 33474699e4b706a640d3c90aa185e777bfc57abb Mon Sep 17 00:00:00 2001 From: Frsf Nrrg Date: Tue, 12 Jun 2018 19:54:58 +0000 Subject: [PATCH] More clarification --- Shortcut-handling.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Shortcut-handling.md b/Shortcut-handling.md index 4bc7612..07033a1 100644 --- a/Shortcut-handling.md +++ b/Shortcut-handling.md @@ -30,7 +30,8 @@ xkb keycodes are typically `scancode + 8`. bindsym Ctrl+Shift+1 restart bindsym Ctrl+exclam restart - # As are these. Exits, e.g. when Control_L, P and Q are pressed simultaneously + # These shortcuts are equivalent and will both exit when, for + # instance, Control_L, P and Q are pressed simultaneously bindsym Ctrl+q+p exit bindsym Ctrl+p+q exit @@ -54,8 +55,14 @@ xkb keycodes are typically `scancode + 8`. bindsym Ctrl+dead_acute+e exec false bindsym Alt+Multi_key+1+2 exec false -### Caveats +### Limitations Pressing multiple keys which would result in the same modifier change if pressed alone (such as `Shift_L` and `Shift_R` on US keyboards) may trigger bindings like `bindsym Shift+Shift_R`, possibly contrary to expectation. + +When multiple keys generate the same keysym or when a single key generates multiple keysyms, shortcuts +like `Ctrl+a+a+b` are possible. Similarly, `Ctrl+a+b` might not work if multiple distinct keys generating +`a` are pressed at the same time. + +