summaryrefslogtreecommitdiffstats
path: root/src/gui_w32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-27 13:16:46 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-27 13:16:46 +0200
commitdaff0fb73851ef368ede180dbb3b772e55304ba7 (patch)
treef670323f2ceef7078bb26398eb8b72871f1e6046 /src/gui_w32.c
parentbade44e5cad1b08c85d4a8ba08d94a30458dddfb (diff)
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_w32.c')
-rw-r--r--src/gui_w32.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c
index 19db1a33ad..5bc5a3903d 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -842,8 +842,7 @@ _OnSysChar(
ch = simplify_key(ch, &modifiers);
// remove the SHIFT modifier for keys where it's already included, e.g.,
// '(' and '*'
- if (ch < 0x100 && !isalpha(ch) && isprint(ch))
- modifiers &= ~MOD_MASK_SHIFT;
+ modifiers = may_remove_shift_modifier(modifiers, ch);
// Unify modifiers somewhat. No longer use ALT to set the 8th bit.
ch = extract_modifiers(ch, &modifiers, FALSE, NULL);