Commit 891560d6 authored by Karl Heuer's avatar Karl Heuer
Browse files

(modifier_set): Check toggle state of CapsLock even

if modifiers are not being recorded.
parent 139b5725
......@@ -2754,6 +2754,8 @@ reset_modifiers ()
static int
modifier_set (int vkey)
{
if (vkey == VK_CAPITAL)
return (GetKeyState (vkey) & 0x1);
if (!modifiers_recorded)
return (GetKeyState (vkey) & 0x8000);
......@@ -2767,8 +2769,6 @@ modifier_set (int vkey)
return modifiers[EMACS_LMENU];
case VK_RMENU:
return modifiers[EMACS_RMENU];
case VK_CAPITAL:
return (GetKeyState (vkey) & 0x1);
default:
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment