aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/input_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-02-03 11:05:38 +0800
committerGitHub <noreply@github.com>2024-02-03 11:05:38 +0800
commit6709f7f8f130377f44c36b2150a167a2afcbdff9 (patch)
treeea4c270eccd08d938ea469ff61c70746141b0cd9 /test/functional/ui/input_spec.lua
parent9ab9cde2ca7b917a894068698ef2fec3a851fdd5 (diff)
downloadrneovim-6709f7f8f130377f44c36b2150a167a2afcbdff9.tar.gz
rneovim-6709f7f8f130377f44c36b2150a167a2afcbdff9.tar.bz2
rneovim-6709f7f8f130377f44c36b2150a167a2afcbdff9.zip
fix(keycodes): simplify S- properly when D- is present (#27316)
Diffstat (limited to 'test/functional/ui/input_spec.lua')
-rw-r--r--test/functional/ui/input_spec.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/ui/input_spec.lua b/test/functional/ui/input_spec.lua
index 80862b668f..b2899bf82d 100644
--- a/test/functional/ui/input_spec.lua
+++ b/test/functional/ui/input_spec.lua
@@ -29,6 +29,10 @@ describe('mappings', function()
end
before_each(function()
+ add_mapping('<A-l>', '<A-l>')
+ add_mapping('<A-L>', '<A-L>')
+ add_mapping('<D-l>', '<D-l>')
+ add_mapping('<D-L>', '<D-L>')
add_mapping('<C-L>', '<C-L>')
add_mapping('<C-S-L>', '<C-S-L>')
add_mapping('<s-up>', '<s-up>')
@@ -61,7 +65,17 @@ describe('mappings', function()
end)
it('ok', function()
+ check_mapping('<A-l>', '<A-l>')
+ check_mapping('<A-L>', '<A-L>')
+ check_mapping('<A-S-l>', '<A-L>')
+ check_mapping('<A-S-L>', '<A-L>')
+ check_mapping('<D-l>', '<D-l>')
+ check_mapping('<D-L>', '<D-L>')
+ check_mapping('<D-S-l>', '<D-L>')
+ check_mapping('<D-S-L>', '<D-L>')
+ check_mapping('<C-l>', '<C-L>')
check_mapping('<C-L>', '<C-L>')
+ check_mapping('<C-S-l>', '<C-S-L>')
check_mapping('<C-S-L>', '<C-S-L>')
check_mapping('<s-up>', '<s-up>')
check_mapping('<c-s-up>', '<c-s-up>')