Include Num Lock in test for modifier keys on MS-Windows.
authorEli Zaretskii <eliz@gnu.org>
Wed, 7 Nov 2012 17:33:14 +0000 (19:33 +0200)
committerEli Zaretskii <eliz@gnu.org>
Wed, 7 Nov 2012 17:33:14 +0000 (19:33 +0200)
 src/w32fns.c (modifier_set): Do not omit checking the Num Lock key.

src/ChangeLog
src/w32fns.c

index 77faa94..c1b42e2 100644 (file)
@@ -5,6 +5,7 @@
        respective keys are treated as function keys, not as modifiers.
        This avoids destroying non-ASCII keyboard input when Scroll Lock
        is toggled ON.  (Bug#1280)
+       (modifier_set): Do not omit checking the Num Lock key.
 
 2012-11-07  Dmitry Antipov  <dmantipov@yandex.ru>
 
index e9e1950..dc39555 100644 (file)
@@ -2085,7 +2085,7 @@ sync_modifiers (void)
 static int
 modifier_set (int vkey)
 {
-  if (vkey == VK_CAPITAL || vkey == VK_SCROLL)
+  if (vkey == VK_CAPITAL || vkey == VK_SCROLL || vkey == VK_NUMLOCK)
     return (GetKeyState (vkey) & 0x1);
   if (!modifiers_recorded)
     return (GetKeyState (vkey) & 0x8000);