terminal: rename and redefine cursor keys mode and keypad keys mode

This commit is contained in:
Daniel Eklöf 2019-07-09 11:07:06 +02:00
parent d90ea88aa2
commit 9b5c044b29
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 10 additions and 10 deletions

View file

@ -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)