From: Eli Zaretskii Date: Wed, 7 Nov 2012 17:33:14 +0000 (+0200) Subject: Include Num Lock in test for modifier keys on MS-Windows. X-Git-Tag: emacs-24.3.90~173^2~18^2~179 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b666f18d4d22b2808488fc785e579e9d5afb6eb5;p=emacs.git Include Num Lock in test for modifier keys on MS-Windows. src/w32fns.c (modifier_set): Do not omit checking the Num Lock key. --- diff --git a/src/ChangeLog b/src/ChangeLog index 77faa94207e..c1b42e276c5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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 diff --git a/src/w32fns.c b/src/w32fns.c index e9e19502479..dc395551a4a 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -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);