diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-27 13:16:46 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-27 13:16:46 +0200 |
commit | daff0fb73851ef368ede180dbb3b772e55304ba7 (patch) | |
tree | f670323f2ceef7078bb26398eb8b72871f1e6046 /src/testdir | |
parent | bade44e5cad1b08c85d4a8ba08d94a30458dddfb (diff) | |
download | vim-git-daff0fb73851ef368ede180dbb3b772e55304ba7.tar.gz |
patch 8.2.1752: GTK GUI: cannot map alt-? with <A-?>v8.2.1752
Problem: GTK GUI: cannot map alt-? with <A-?>. (Ingo Karkat)
Solution: Adjust the characters for which the shift modifier is removed.
(closes #7016) Make Motif and Win32 use the same function as GTK.
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_termcodes.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/testdir/test_termcodes.vim b/src/testdir/test_termcodes.vim index f3a7af596..91ccda8ca 100644 --- a/src/testdir/test_termcodes.vim +++ b/src/testdir/test_termcodes.vim @@ -2123,6 +2123,20 @@ func Test_mapping_works_with_shift_alt() call RunTest_mapping_works_with_mods(function('GetEscCodeCSIu'), 'S-A', 4) endfunc +func Test_mapping_works_with_alt_and_shift() + new + set timeoutlen=10 + + " mapping <A-?> works even though the code is A-S-? + for c in ['!', '$', '+', ':', '?', '^', '~'] + call RunTest_mapping_mods('<A-' .. c .. '>', c, function('GetEscCodeCSI27'), 4) + call RunTest_mapping_mods('<A-' .. c .. '>', c, function('GetEscCodeCSIu'), 4) + endfor + + bwipe! + set timeoutlen& +endfunc + func Test_mapping_works_with_ctrl_alt() call RunTest_mapping_works_with_mods(function('GetEscCodeCSI27'), 'C-A', 7) call RunTest_mapping_works_with_mods(function('GetEscCodeCSIu'), 'C-A', 7) |