diff options
author | Olivier G-R <olivier@fractalwire.io> | 2019-03-29 13:09:54 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-03-31 23:39:06 +0200 |
commit | d13803f64fc5607c6319087240e35a8b86082f64 (patch) | |
tree | 3e8e546c1e2cfd6934557e0093e8b0ec827b461f /src/nvim/keymap.c | |
parent | f793c578bc409be65b755c35d347b8c60f777eed (diff) | |
download | rneovim-d13803f64fc5607c6319087240e35a8b86082f64.tar.gz rneovim-d13803f64fc5607c6319087240e35a8b86082f64.tar.bz2 rneovim-d13803f64fc5607c6319087240e35a8b86082f64.zip |
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
Diffstat (limited to 'src/nvim/keymap.c')
-rw-r--r-- | src/nvim/keymap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/keymap.c b/src/nvim/keymap.c index ea04f1251e..9145813525 100644 --- a/src/nvim/keymap.c +++ b/src/nvim/keymap.c @@ -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; |