comparison src/gui_x11.c @ 22407:c19acd92ee83 v8.2.1752

patch 8.2.1752: GTK GUI: cannot map alt-? with <A-?> Commit: https://github.com/vim/vim/commit/daff0fb73851ef368ede180dbb3b772e55304ba7 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 27 13:16:46 2020 +0200 patch 8.2.1752: GTK GUI: cannot map alt-? with <A-?> Problem: GTK GUI: cannot map alt-? with <A-?>. (Ingo Karkat) Solution: Adjust the characters for which the shift modifier is removed. (closes #7016) Make Motif and Win32 use the same function as GTK.
author Bram Moolenaar <Bram@vim.org>
date Sun, 27 Sep 2020 13:30:03 +0200
parents f260c1411833
children 6c7e4db139a3
comparison
equal deleted inserted replaced
22406:4b657770c9b7 22407:c19acd92ee83
956 { 956 {
957 len = mb_char2bytes(key, string); 957 len = mb_char2bytes(key, string);
958 958
959 // Remove the SHIFT modifier for keys where it's already included, 959 // Remove the SHIFT modifier for keys where it's already included,
960 // e.g., '(', '!' and '*'. 960 // e.g., '(', '!' and '*'.
961 if (!ASCII_ISALPHA(key) && key > 0x20 && key < 0x7f) 961 modifiers = may_remove_shift_modifier(modifiers, key);
962 modifiers &= ~MOD_MASK_SHIFT;
963 } 962 }
964 963
965 if (modifiers != 0) 964 if (modifiers != 0)
966 { 965 {
967 string2[0] = CSI; 966 string2[0] = CSI;