aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32fns.c
diff options
context:
space:
mode:
authorKarl Heuer <[email protected]>1996-05-22 03:26:55 +0000
committerKarl Heuer <[email protected]>1996-05-22 03:26:55 +0000
commit891560d60e616def451dbf39cf8f19fa04e3bdc8 (patch)
tree0722ec3b6f9d679452f5a54fc39d4c28649c0dce /src/w32fns.c
parent139b57253d3f96a3584d76fd6ff9d541d2e78ab5 (diff)
(modifier_set): Check toggle state of CapsLock even
if modifiers are not being recorded.
Diffstat (limited to 'src/w32fns.c')
-rw-r--r--src/w32fns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/w32fns.c b/src/w32fns.c
index f6f3f4aec1..9a1a4cae21 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -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;
}