keymap, terminal: more keycodes #9810

- input: recognize <kEqual>, <kComma>
- terminal.c: If we need to support function key, a change must be made
  in libvtermkey. Currently, it emulates strictly VT220 terminal, and
  returning numeric value in 'normal' mode is the expected behaviour.

closes #9810
This commit is contained in:
Olivier G-R
2019-03-29 13:09:54 +01:00
committed by Justin M. Keyes
parent f793c578bc
commit d13803f64f
7 changed files with 57 additions and 35 deletions

View File

@@ -263,6 +263,10 @@ static const struct key_name_entry {
{ K_KENTER, "kEnter" },
{ K_KENTER, "KPEnter" },
{ K_KPOINT, "kPoint" },
{ K_KCOMMA, "kComma" },
{ K_KCOMMA, "KPComma" },
{ K_KEQUAL, "kEqual" },
{ K_KEQUAL, "KPEquals" },
{ K_K0, "k0" },
{ K_K1, "k1" },
@@ -684,7 +688,7 @@ int find_special_key(const char_u **srcp, const size_t src_len, int *const modp,
*modp = modifiers;
*srcp = end_of_name;
return key;
}
} // else { ELOG("unknown key: '%s'", src); }
}
}
return 0;