diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2022-04-10 12:37:48 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-10 12:37:48 +0100 |
commit | e08fde007308fffec818b4ad6eccf573f54bed5b (patch) | |
tree | e3967eff152cf80f809c8ab7684c08796e0eb2b6 /src/gui_w32.c | |
parent | fa76a24109f3c3287e4ee17b6270bfd5310c12f3 (diff) | |
download | vim-git-e08fde007308fffec818b4ad6eccf573f54bed5b.tar.gz |
patch 8.2.4730: MS-Windows GUI: cannot use CTRL-/v8.2.4730
Problem: MS-Windows GUI: cannot use CTRL-/.
Solution: Handle the WM_KEYUP event. (Yasuhiro Matsumoto, closes #10141)
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r-- | src/gui_w32.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c index 584e4ef3e..d1cc06d5b 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -4635,6 +4635,20 @@ _WndProc( } break; + case WM_KEYUP: + // handle CTRL-/ + if ((GetKeyState(VK_CONTROL) & 0x8000) != 0 && wParam == 0xBF) + { + char_u string[4]; + + string[0] = CSI; + string[1] = KS_MODIFIER; + string[2] = MOD_MASK_CTRL; + string[3] = 0x2F; + add_to_input_buf(string, 4); + } + return 0L; + case WM_CHAR: // Don't use HANDLE_MSG() for WM_CHAR, it truncates wParam to a single // byte while we want the UTF-16 character value. |