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/gui_x11.c | |
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/gui_x11.c')
-rw-r--r-- | src/gui_x11.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui_x11.c b/src/gui_x11.c index 1402407c2..f1d9bf8e5 100644 --- a/src/gui_x11.c +++ b/src/gui_x11.c @@ -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) |