From 80a20df86a1ceefa3506cc578ba0ba35da979e38 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 26 May 2020 22:14:27 +0200 Subject: 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 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui_x11.c') 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) -- cgit v1.2.1