diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-03-04 14:51:06 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-04 14:51:06 +0000 |
commit | d979d64fa269ff47a96fc6aed2f4cdd066753c0c (patch) | |
tree | 1d8b94bce692199f62b828fce7733e4a0e65ca7a /src/getchar.c | |
parent | 21efafe4c25373929979c72dc8aafa119f12dd8b (diff) |
patch 8.2.4502: in the GUI a modifier is not recognized after CTRL-Xv8.2.4502
Problem: In the GUI a modifier is not recognized for the key typed after
CTRL-X, which may result in a mapping to be used. (Daniel
Steinberg)
Solution: Recognize a modifier starting with CSI. (closes #9889)
Diffstat (limited to 'src/getchar.c')
-rw-r--r-- | src/getchar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/getchar.c b/src/getchar.c index 9939bbdbcb..2fbbd4f6e1 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -2331,7 +2331,7 @@ at_ctrl_x_key(void) int c = *p; if (typebuf.tb_len > 3 - && c == K_SPECIAL + && (c == K_SPECIAL || c == CSI) // CSI is used by the GUI && p[1] == KS_MODIFIER && (p[2] & MOD_MASK_CTRL)) c = p[3] & 0x1f; |