aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-11-19 18:15:13 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-11-19 18:22:48 +0000
commit121b488e7444234b6dc9d771b8178d45d1880b63 (patch)
treec01079ad79b6aa5a33dd9387867e328b221d04d7 /input.c
parentMerge branch 'dim-and-brighten-via-hsl' (diff)
keymap: use same lookup table for Tab and ISO_Left_Tab
With XKB, Shift+Tab maps to XKB_KEY_ISO_Left_Tab, not XKB_Key_Tab. Previously, we had two different lookup tables for the two. The tab table was correctly populated, while the ISO-left tab wasn’t. As a result, all Shift+Tab combos (except Shift+Tab itself) was wrong, and resulted in the same escape sequence as Shift+Tab. Fix by using the same table for both tab and ISO-left tab. Closes #210
Diffstat (limited to 'input.c')
-rw-r--r--input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/input.c b/input.c
index d455a473..61f1d004 100644
--- a/input.c
+++ b/input.c
@@ -659,8 +659,8 @@ keymap_data_for_sym(xkb_keysym_t sym, size_t *count)
switch (sym) {
case XKB_KEY_Escape: *count = ALEN(key_escape); return key_escape;
case XKB_KEY_Return: *count = ALEN(key_return); return key_return;
- case XKB_KEY_Tab: *count = ALEN(key_tab); return key_tab;
- case XKB_KEY_ISO_Left_Tab: *count = ALEN(key_backtab); return key_backtab;
+ case XKB_KEY_Tab: /* FALLTHROUGH */
+ case XKB_KEY_ISO_Left_Tab: *count = ALEN(key_tab); return key_tab;
case XKB_KEY_BackSpace: *count = ALEN(key_backspace); return key_backspace;
case XKB_KEY_Up: *count = ALEN(key_up); return key_up;
case XKB_KEY_Down: *count = ALEN(key_down); return key_down;