Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
20420:e5482a10499c | 20421:8590a462ad46 |
---|---|
2166 { | 2166 { |
2167 // Following code to simplify and consolidate vimModifiers | 2167 // Following code to simplify and consolidate vimModifiers |
2168 // taken liberally from gui_w48.c | 2168 // taken liberally from gui_w48.c |
2169 key_char = simplify_key(key_char, (int *)&vimModifiers); | 2169 key_char = simplify_key(key_char, (int *)&vimModifiers); |
2170 | 2170 |
2171 // Interpret META, include SHIFT, etc. | 2171 // Unify modifiers somewhat. No longer use ALT to set the 8th bit. |
2172 key_char = extract_modifiers(key_char, (int *)&vimModifiers, | 2172 key_char = extract_modifiers(key_char, (int *)&vimModifiers, |
2173 TRUE, NULL); | 2173 FALSE, NULL); |
2174 if (key_char == CSI) | 2174 if (key_char == CSI) |
2175 key_char = K_CSI; | 2175 key_char = K_CSI; |
2176 | 2176 |
2177 if (IS_SPECIAL(key_char)) | 2177 if (IS_SPECIAL(key_char)) |
2178 isSpecial = TRUE; | 2178 isSpecial = TRUE; |