From 9b5c044b29f31c0cd8a4ffa21d497cd5ccb28404 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 9 Jul 2019 11:07:06 +0200 Subject: terminal: rename and redefine cursor keys mode and keypad keys mode --- input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'input.c') 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) -- cgit v1.3