src/w32fns.c (modifier_set): Do not omit checking the Num Lock key.
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>
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);