diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-05-16 14:01:51 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-05-16 14:01:51 +0200 |
commit | fd615a3c901f59abddca27c6a09940be552c0f4d (patch) | |
tree | 75fdd6532b664e0a7971b309c07242aac28d4571 /src/gui_w32.c | |
parent | a6e67e4f41386c3e6eab7e047671c6d32f6cb0dc (diff) | |
download | vim-git-fd615a3c901f59abddca27c6a09940be552c0f4d.tar.gz |
patch 8.2.0765: In the GUI can't use all the modifiers.v8.2.0765
Problem: In the GUI can't use all the modifiers. (Andri Möll)
Solution: Do not apply Alt/Meta early, do it later like with the terminal.
Avoid the Motif test from crashing.
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r-- | src/gui_w32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c index 2409ee68e..6527b4230 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -847,8 +847,8 @@ _OnSysChar( if (ch < 0x100 && !isalpha(ch) && isprint(ch)) modifiers &= ~MOD_MASK_SHIFT; - // Interpret the ALT key as making the key META, include SHIFT, etc. - ch = extract_modifiers(ch, &modifiers, TRUE, NULL); + // Unify modifiers somewhat. No longer use ALT to set the 8th bit. + ch = extract_modifiers(ch, &modifiers, FALSE, NULL); if (ch == CSI) ch = K_CSI; |