Skip to content

Commit

Permalink
patch 8.2.0830: Motif: can't map "!"
Browse files Browse the repository at this point in the history
Problem:    Motif: can't map "!". (Ben Jackson)
Solution:   Remove the shift modifier if it's already included in the key.
            (closes #6147)
  • Loading branch information
brammool committed May 26, 2020
1 parent 388a5d4 commit 80a20df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui_x11.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
830,
/**/
829,
/**/
Expand Down

0 comments on commit 80a20df

Please sign in to comment.