]> granicus.if.org Git - vim/commitdiff
patch 8.2.4811: Win32 GUI: caps lock doesn't work v8.2.4811
authorLemonBoy <thatlemon@gmail.com>
Sat, 23 Apr 2022 10:08:11 +0000 (11:08 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 23 Apr 2022 10:08:11 +0000 (11:08 +0100)
Problem:    Win32 GUI: caps lock doesn't work.
Solution:   Handle VK_CAPITAL. (closes #10260, closes #10258)

src/gui_w32.c
src/version.c

index caed8e9de8cb56d307db1ac55b0495f5d3a24914..7c2c7fce33f427d88f1878d852f8060386d1de1d 100644 (file)
@@ -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;
index bb63fdbaa61810ec7496017b2f84c30c40264e7d..d054717f851483e69b0d93a6f31d694cb6c3c387 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4811,
 /**/
     4810,
 /**/