diff options
author | LemonBoy <thatlemon@gmail.com> | 2022-04-23 11:08:11 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-23 11:08:11 +0100 |
commit | 0de7369fd4ed5b739341e9d7971538b89b1748e0 (patch) | |
tree | f5631c60813962b3a204e05133e052f4159dbbe5 | |
parent | 56dba60216a1bf72c1de299316f4d4ef19e50ad5 (diff) |
patch 8.2.4811: Win32 GUI: caps lock doesn't workv8.2.4811
Problem: Win32 GUI: caps lock doesn't work.
Solution: Handle VK_CAPITAL. (closes #10260, closes #10258)
-rw-r--r-- | src/gui_w32.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c index caed8e9de8..7c2c7fce33 100644 --- 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; diff --git a/src/version.c b/src/version.c index bb63fdbaa6..d054717f85 100644 --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4811, +/**/ 4810, /**/ 4809, |