comparison src/gui_x11.c @ 31940:03188d05289a v9.0.1302

patch 9.0.1302: on a Belgian keyboard CTRL-] does not work Commit: https://github.com/vim/vim/commit/aab2ead008a66fe873091fa721b2d8d8f4083815 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 11 16:15:50 2023 +0000 patch 9.0.1302: on a Belgian keyboard CTRL-] does not work Problem: On a Belgian keyboard CTRL-] does not work. Solution: Translate CTRL-$ into CTRL-]. (closes https://github.com/vim/vim/issues/11831)
author Bram Moolenaar <Bram@vim.org>
date Sat, 11 Feb 2023 17:30:04 +0100
parents 50555279168b
children 8f04cf65ecff
comparison
equal deleted inserted replaced
31939:5c671537304d 31940:03188d05289a
934 string[2] = K_THIRD(key); 934 string[2] = K_THIRD(key);
935 len = 3; 935 len = 3;
936 } 936 }
937 else 937 else
938 { 938 {
939 len = mb_char2bytes(key, string);
940
941 // Some keys need adjustment when the Ctrl modifier is used. 939 // Some keys need adjustment when the Ctrl modifier is used.
942 key = may_adjust_key_for_ctrl(modifiers, key); 940 key = may_adjust_key_for_ctrl(modifiers, key);
941
942 len = mb_char2bytes(key, string);
943 943
944 // Remove the SHIFT modifier for keys where it's already included, 944 // Remove the SHIFT modifier for keys where it's already included,
945 // e.g., '(', '!' and '*'. 945 // e.g., '(', '!' and '*'.
946 modifiers = may_remove_shift_modifier(modifiers, key); 946 modifiers = may_remove_shift_modifier(modifiers, key);
947 } 947 }