Mercurial > vim
changeset 28574:7c96d7924ea5 v8.2.4811
patch 8.2.4811: Win32 GUI: caps lock doesn't work
Commit: https://github.com/vim/vim/commit/0de7369fd4ed5b739341e9d7971538b89b1748e0
Author: LemonBoy <thatlemon@gmail.com>
Date: Sat Apr 23 11:08:11 2022 +0100
patch 8.2.4811: Win32 GUI: caps lock doesn't work
Problem: Win32 GUI: caps lock doesn't work.
Solution: Handle VK_CAPITAL. (closes https://github.com/vim/vim/issues/10260, closes https://github.com/vim/vim/issues/10258)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 23 Apr 2022 12:15:04 +0200 |
parents | 30f7f66f9a75 |
children | b02c86cf0678 |
files | src/gui_w32.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -2049,6 +2049,8 @@ process_message(void) memset(keyboard_state, 0, 256); if (GetKeyState(VK_SHIFT) & 0x8000) keyboard_state[VK_SHIFT] = 0x80; + if (GetKeyState(VK_CAPITAL) & 0x0001) + keyboard_state[VK_CAPITAL] = 0x01; if (GetKeyState(VK_RMENU) & 0x8000) { keyboard_state[VK_MENU] = 0x80;