Mercurial > vim
diff src/gui_mac.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 | c2570baa2e4c |
line wrap: on
line diff
--- a/src/gui_mac.c +++ b/src/gui_mac.c @@ -2168,9 +2168,9 @@ gui_mac_unicode_key_event( // taken liberally from gui_w48.c key_char = simplify_key(key_char, (int *)&vimModifiers); - // Interpret META, include SHIFT, etc. + // Unify modifiers somewhat. No longer use ALT to set the 8th bit. key_char = extract_modifiers(key_char, (int *)&vimModifiers, - TRUE, NULL); + FALSE, NULL); if (key_char == CSI) key_char = K_CSI;