comparison 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
comparison
equal deleted inserted replaced
20420:e5482a10499c 20421:8590a462ad46
845 // remove the SHIFT modifier for keys where it's already included, e.g., 845 // remove the SHIFT modifier for keys where it's already included, e.g.,
846 // '(' and '*' 846 // '(' and '*'
847 if (ch < 0x100 && !isalpha(ch) && isprint(ch)) 847 if (ch < 0x100 && !isalpha(ch) && isprint(ch))
848 modifiers &= ~MOD_MASK_SHIFT; 848 modifiers &= ~MOD_MASK_SHIFT;
849 849
850 // Interpret the ALT key as making the key META, include SHIFT, etc. 850 // Unify modifiers somewhat. No longer use ALT to set the 8th bit.
851 ch = extract_modifiers(ch, &modifiers, TRUE, NULL); 851 ch = extract_modifiers(ch, &modifiers, FALSE, NULL);
852 if (ch == CSI) 852 if (ch == CSI)
853 ch = K_CSI; 853 ch = K_CSI;
854 854
855 len = 0; 855 len = 0;
856 if (modifiers) 856 if (modifiers)