From 80a20df86a1ceefa3506cc578ba0ba35da979e38 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 26 May 2020 22:14:27 +0200 Subject: [PATCH] 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) --- src/gui_x11.c | 5 +++++ src/version.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/gui_x11.c b/src/gui_x11.c index c03b21044..1eec793e5 100644 --- a/src/gui_x11.c +++ b/src/gui_x11.c @@ -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) diff --git a/src/version.c b/src/version.c index f91ff1a99..f088e6122 100644 --- a/src/version.c +++ b/src/version.c @@ -746,6 +746,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 830, /**/ 829, /**/