diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-13 16:43:39 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-13 16:43:39 +0200 |
commit | 459fd785e4a8d044147a3f83a5fca8748528aa84 (patch) | |
tree | 52c679e08a445bac0f650bff4d8118d6eb190d7b /src/gui_mac.c | |
parent | 171a921b51101c1261040d28a8147c8829b675d3 (diff) | |
download | vim-git-459fd785e4a8d044147a3f83a5fca8748528aa84.tar.gz |
patch 8.1.2145: cannot map <C-H> when modifyOtherKeys is enabledv8.1.2145
Problem: Cannot map <C-H> when modifyOtherKeys is enabled.
Solution: Add the <C-H> mapping twice, both with modifier and as 0x08. Use
only the first one when modifyOtherKeys has been detected.
Diffstat (limited to 'src/gui_mac.c')
-rw-r--r-- | src/gui_mac.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui_mac.c b/src/gui_mac.c index b43ed8506..185cdee28 100644 --- a/src/gui_mac.c +++ b/src/gui_mac.c @@ -2177,7 +2177,8 @@ gui_mac_unicode_key_event( key_char = simplify_key(key_char, (int *)&vimModifiers); /* Interpret META, include SHIFT, etc. */ - key_char = extract_modifiers(key_char, (int *)&vimModifiers); + key_char = extract_modifiers(key_char, (int *)&vimModifiers, + TRUE, NULL); if (key_char == CSI) key_char = K_CSI; @@ -4772,7 +4773,8 @@ gui_mch_add_menu_item(vimmenu_T *menu, int idx) char_u *p_actext; p_actext = menu->actext; - key = find_special_key(&p_actext, &modifiers, FALSE, FALSE, FALSE); + key = find_special_key(&p_actext, &modifiers, FALSE, FALSE, FALSE, + TRUE, NULL); if (*p_actext != 0) key = 0; /* error: trailing text */ /* find_special_key() returns a keycode with as many of the |