1
0
forked from aniani/vim

patch 8.2.1752: GTK GUI: cannot map alt-? with <A-?>

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.
This commit is contained in:
Bram Moolenaar
2020-09-27 13:16:46 +02:00
parent bade44e5ca
commit daff0fb738
5 changed files with 22 additions and 6 deletions

View File

@@ -958,8 +958,7 @@ gui_x11_key_hit_cb(
// Remove the SHIFT modifier for keys where it's already included,
// e.g., '(', '!' and '*'.
if (!ASCII_ISALPHA(key) && key > 0x20 && key < 0x7f)
modifiers &= ~MOD_MASK_SHIFT;
modifiers = may_remove_shift_modifier(modifiers, key);
}
if (modifiers != 0)