aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/input_spec.lua
diff options
context:
space:
mode:
authorOlivier G-R <olivier@fractalwire.io>2019-03-29 13:09:54 +0100
committerJustin M. Keyes <justinkz@gmail.com>2019-03-31 23:39:06 +0200
commitd13803f64fc5607c6319087240e35a8b86082f64 (patch)
tree3e8e546c1e2cfd6934557e0093e8b0ec827b461f /test/functional/ui/input_spec.lua
parentf793c578bc409be65b755c35d347b8c60f777eed (diff)
downloadrneovim-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 'test/functional/ui/input_spec.lua')
-rw-r--r--test/functional/ui/input_spec.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/ui/input_spec.lua b/test/functional/ui/input_spec.lua
index a638ec226a..121cbe47d6 100644
--- a/test/functional/ui/input_spec.lua
+++ b/test/functional/ui/input_spec.lua
@@ -46,6 +46,8 @@ describe('mappings', function()
add_mapping('<kminus>','<kminus>')
add_mapping('<kplus>','<kplus>')
add_mapping('<kenter>','<kenter>')
+ add_mapping('<kcomma>','<kcomma>')
+ add_mapping('<kequal>','<kequal>')
end)
it('ok', function()
@@ -96,6 +98,10 @@ describe('mappings', function()
check_mapping('<KPPlus>','<kplus>')
check_mapping('<kenter>','<kenter>')
check_mapping('<KPEnter>','<kenter>')
+ check_mapping('<kcomma>','<kcomma>')
+ check_mapping('<KPComma>','<kcomma>')
+ check_mapping('<kequal>','<kequal>')
+ check_mapping('<KPEquals>','<kequal>')
end)
end)