summaryrefslogtreecommitdiffstats
path: root/src/gui_x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_x11.c')
-rw-r--r--src/gui_x11.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui_x11.c b/src/gui_x11.c
index 1eec793e5a..a64bc3bd9c 100644
--- a/src/gui_x11.c
+++ b/src/gui_x11.c
@@ -920,7 +920,12 @@ gui_x11_key_hit_cb(
if (ev_press->state & ShiftMask)
modifiers |= MOD_MASK_SHIFT;
if (ev_press->state & ControlMask)
+ {
modifiers |= MOD_MASK_CTRL;
+ if (len == 1 && string[0] < 0x20)
+ // Use the character before applyng CTRL.
+ string[0] += 0x40;
+ }
if (ev_press->state & Mod1Mask)
modifiers |= MOD_MASK_ALT;
if (ev_press->state & Mod4Mask)