diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-28 10:50:05 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-03-08 19:30:25 +0000 |
| commit | e4f164d9585d4e84de15061de6430d5c1c1a12ed (patch) | |
| tree | fc97d55f21e97d9e6aaf176e4bcd3ac7813ac466 /scripts | |
| parent | input: do not include consumed modifiers in the set sent to the client (diff) | |
keymap: handle shift+tab combos correctly, after consuming modifiers
Shift+Tab is an odd bird in XKB; it produces a shifted variant of tab,
ISO_Left_Tab, with Shift being a consumed modifier.
From a terminal perspective, Tab and ISO_Left_Tab are the same key,
with Shift+Tab generating ‘CSI Z’, and all other combos generating a
‘CSI 27;mods;9~’ escape.
Before, when we didn’t filter out consumed modifiers, we could simply
re-use the keymap for Tab when translating ISO_Left_Tab.
This is no longer possible, since shift has been filtered out. As a
result, Shift+Tab no longer generated ‘CSI Z’, but ‘\t’. I.e as if
shift wasn’t being pressed.
This patch adds a separate keymap table for ISO_Left_Tab. It’s MOD_ANY
entry corresponds to Shift+Tab, and emits ‘CSI Z’. All its other
entries *exclude* shift (since it has been consumed), *but*, the
encoded modifier (in the escape sequences) *include* shift.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
