aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-09 09:07:06 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-09 09:07:06 +0000
commit9b5c044b29f31c0cd8a4ffa21d497cd5ccb28404 (patch)
treeab748ad05d321b9a4ebbea026e36a9841f8875b4 /input.c
parentvt: handle ESC correctly in OSC string state (diff)
terminal: rename and redefine cursor keys mode and keypad keys mode
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 d8fbd4cd..11dd398d 100644
--- a/input.c
+++ b/input.c
@@ -207,9 +207,9 @@ keyboard_key(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
sym, mods, consumed, significant, effective_mods);
if (sym < sizeof(key_map) / sizeof(key_map[0]) &&
- key_map[sym][term->decckm].normal != NULL)
+ key_map[sym][term->cursor_keys_mode - 1].normal != NULL)
{
- const struct keymap *key = &key_map[sym][term->decckm];
+ const struct keymap *key = &key_map[sym][term->cursor_keys_mode - 1];
const char *esc = NULL;
if (effective_mods == 0)