mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 8.2.0830: Motif: can't map "!"
Problem: Motif: can't map "!". (Ben Jackson) Solution: Remove the shift modifier if it's already included in the key. (closes #6147)
This commit is contained in:
@@ -948,6 +948,11 @@ gui_x11_key_hit_cb(
|
||||
{
|
||||
string[0] = key;
|
||||
len = 1;
|
||||
|
||||
// Remove the SHIFT modifier for keys where it's already included,
|
||||
// e.g., '(', '!' and '*'.
|
||||
if (!ASCII_ISALPHA(key) && key > 0x20 && key < 0x7f)
|
||||
modifiers &= ~MOD_MASK_SHIFT;
|
||||
}
|
||||
|
||||
if (modifiers != 0)
|
||||
|
@@ -746,6 +746,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
830,
|
||||
/**/
|
||||
829,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user