summaryrefslogtreecommitdiffstats
path: root/src/gui_x11.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-10-07 16:12:37 +0200
committerBram Moolenaar <Bram@vim.org>2020-10-07 16:12:37 +0200
commit4e2114e988f5d8635f2ad748be3cafcc44289138 (patch)
treed2f14c8854f0fec07b895f8277c49212873f382e /src/gui_x11.c
parentf12f0022e6698831681f0931a4e7e5298f6ef0d8 (diff)
patch 8.2.1809: mapping some keys with Ctrl does not work properlyv8.2.1809
Problem: Mapping some keys with Ctrl does not work properly. Solution: For terminal, GTK and Motif handle "@", "^" and "_" codes.
Diffstat (limited to 'src/gui_x11.c')
-rw-r--r--src/gui_x11.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui_x11.c b/src/gui_x11.c
index f1d9bf8e58..38f85d875e 100644
--- a/src/gui_x11.c
+++ b/src/gui_x11.c
@@ -956,6 +956,9 @@ gui_x11_key_hit_cb(
{
len = mb_char2bytes(key, string);
+ // Some keys need adjustment when the Ctrl modifier is used.
+ key = may_adjust_key_for_ctrl(modifiers, key);
+
// Remove the SHIFT modifier for keys where it's already included,
// e.g., '(', '!' and '*'.
modifiers = may_remove_shift_modifier(modifiers, key);