patch 8.2.0835: Motif: mapping <C-bslash> still doesn't work
Problem: Motif: mapping <C-bslash> still doesn't work.
Solution: Accept CSI for K_SPECIAL. Do not apply CTRL to the character
early. (closes #6150)
diff --git a/src/gui_x11.c b/src/gui_x11.c
index 1eec793..a64bc3b 100644
--- a/src/gui_x11.c
+++ b/src/gui_x11.c
@@ -920,7 +920,12 @@
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)