From d13803f64fc5607c6319087240e35a8b86082f64 Mon Sep 17 00:00:00 2001 From: Olivier G-R Date: Fri, 29 Mar 2019 13:09:54 +0100 Subject: [PATCH] keymap, terminal: more keycodes #9810 - input: recognize , - 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 --- runtime/doc/intro.txt | 4 ++- src/nvim/getchar.c | 2 ++ src/nvim/keymap.c | 6 +++- src/nvim/keymap.h | 57 ++++++++++++++++--------------- src/nvim/main.c | 2 +- src/nvim/terminal.c | 15 +++++--- test/functional/ui/input_spec.lua | 6 ++++ 7 files changed, 57 insertions(+), 35 deletions(-) diff --git a/runtime/doc/intro.txt b/runtime/doc/intro.txt index 86a6136d32..1d2cca3073 100644 --- a/runtime/doc/intro.txt +++ b/runtime/doc/intro.txt @@ -373,8 +373,10 @@ notation meaning equivalent decimal value(s) ~ keypad - *keypad-minus* keypad * *keypad-multiply* keypad / *keypad-divide* + keypad . *keypad-point* + keypad , *keypad-comma* + keypad = *keypad-equal* keypad Enter *keypad-enter* - keypad Decimal point *keypad-point* - keypad 0 to 9 *keypad-0* *keypad-9* shift-key *shift* * control-key *control* *ctrl* *','') add_mapping('','') add_mapping('','') + add_mapping('','') + add_mapping('','') end) it('ok', function() @@ -96,6 +98,10 @@ describe('mappings', function() check_mapping('','') check_mapping('','') check_mapping('','') + check_mapping('','') + check_mapping('','') + check_mapping('','') + check_mapping('','') end) end)