0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.0835: Motif: mapping <C-bslash> still doesn't work

Problem:    Motif: mapping <C-bslash> still doesn't work.
Solution:   Accept CSI for K_SPECIAL.  Do not apply CTRL to the character
            early.  (closes #6150)
This commit is contained in:
Bram Moolenaar
2020-05-28 21:03:53 +02:00
parent 3f65c66df9
commit c998370562
3 changed files with 17 additions and 1 deletions

View File

@@ -920,7 +920,12 @@ gui_x11_key_hit_cb(
if (ev_press->state & ShiftMask)
modifiers |= MOD_MASK_SHIFT;
if (ev_press->state & ControlMask)
{
modifiers |= MOD_MASK_CTRL;
if (len == 1 && string[0] < 0x20)
// Use the character before applyng CTRL.
string[0] += 0x40;
}
if (ev_press->state & Mod1Mask)
modifiers |= MOD_MASK_ALT;
if (ev_press->state & Mod4Mask)