diff options
Diffstat (limited to 'src/gui_x11.c')
-rw-r--r-- | src/gui_x11.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) |