changeset 15280:f39684fddaff

(modifier_set): Check toggle state of CapsLock even if modifiers are not being recorded.
author Karl Heuer <kwzh@gnu.org>
date Wed, 22 May 1996 03:26:55 +0000
parents a073669046b1
children dd275783c873
files src/w32fns.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32fns.c	Wed May 22 00:36:27 1996 +0000
+++ b/src/w32fns.c	Wed May 22 03:26:55 1996 +0000
@@ -2754,6 +2754,8 @@
 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 @@
       return modifiers[EMACS_LMENU];
     case VK_RMENU:
       return modifiers[EMACS_RMENU];
-    case VK_CAPITAL:
-      return (GetKeyState (vkey) & 0x1);
     default:
       break;
     }