Mercurial > vim
diff src/gui_w32.c @ 20421:8590a462ad46 v8.2.0765
patch 8.2.0765: In the GUI can't use all the modifiers.
Commit: https://github.com/vim/vim/commit/fd615a3c901f59abddca27c6a09940be552c0f4d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 16 14:01:51 2020 +0200
patch 8.2.0765: In the GUI can't use all the modifiers.
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 16 May 2020 14:15:05 +0200 |
parents | aadd1cae2ff5 |
children | a4f213630151 |
line wrap: on
line diff
--- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -847,8 +847,8 @@ char_to_string(int ch, char_u *string, i 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;