0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.2.0830: Motif: can't map "!"

Problem:    Motif: can't map "!". (Ben Jackson)
Solution:   Remove the shift modifier if it's already included in the key.
            (closes #6147)
This commit is contained in:
Bram Moolenaar
2020-05-26 22:14:27 +02:00
parent 388a5d4f20
commit 80a20df86a
2 changed files with 7 additions and 0 deletions

View File

@@ -948,6 +948,11 @@ gui_x11_key_hit_cb(
{ {
string[0] = key; string[0] = key;
len = 1; len = 1;
// 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;
} }
if (modifiers != 0) if (modifiers != 0)

View File

@@ -746,6 +746,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
830,
/**/ /**/
829, 829,
/**/ /**/