1
0
forked from aniani/vim

patch 8.2.4811: Win32 GUI: caps lock doesn't work

Problem:    Win32 GUI: caps lock doesn't work.
Solution:   Handle VK_CAPITAL. (closes #10260, closes #10258)
This commit is contained in:
LemonBoy
2022-04-23 11:08:11 +01:00
committed by Bram Moolenaar
parent 56dba60216
commit 0de7369fd4
2 changed files with 4 additions and 0 deletions

View File

@@ -2049,6 +2049,8 @@ process_message(void)
memset(keyboard_state, 0, 256); memset(keyboard_state, 0, 256);
if (GetKeyState(VK_SHIFT) & 0x8000) if (GetKeyState(VK_SHIFT) & 0x8000)
keyboard_state[VK_SHIFT] = 0x80; keyboard_state[VK_SHIFT] = 0x80;
if (GetKeyState(VK_CAPITAL) & 0x0001)
keyboard_state[VK_CAPITAL] = 0x01;
if (GetKeyState(VK_RMENU) & 0x8000) if (GetKeyState(VK_RMENU) & 0x8000)
{ {
keyboard_state[VK_MENU] = 0x80; keyboard_state[VK_MENU] = 0x80;

View File

@@ -746,6 +746,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
4811,
/**/ /**/
4810, 4810,
/**/ /**/