summaryrefslogtreecommitdiff
path: root/src/gui_x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_x11.c')
-rw-r--r--src/gui_x11.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui_x11.c b/src/gui_x11.c
index 1402407c2..f1d9bf8e5 100644
--- a/src/gui_x11.c
+++ b/src/gui_x11.c
@@ -958,8 +958,7 @@ gui_x11_key_hit_cb(
// 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;
+ modifiers = may_remove_shift_modifier(modifiers, key);
}
if (modifiers != 0)