aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2012-11-07 23:48:18 +0200
committerEli Zaretskii2012-11-07 23:48:18 +0200
commit6b064c16b1761605c87c0d3dbee91f6c3f6030d0 (patch)
treed8f9e73847c8146cd861b35a498cbc05f8ada668 /src
parentdab72075f5caae9f0603b358d58023f4f210d876 (diff)
downloademacs-6b064c16b1761605c87c0d3dbee91f6c3f6030d0.tar.gz
emacs-6b064c16b1761605c87c0d3dbee91f6c3f6030d0.zip
Fix Num Lock handling related to bug #12806.
src/w32fns.c (modifier_set): Don't include Num Lock in the reported modifiers.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/w32fns.c7
2 files changed, 1 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 04b66ba7cc7..0eb69f59efe 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -3,8 +3,7 @@
3 * w32fns.c (modifier_set): Don't report modifiers from toggle key, 3 * w32fns.c (modifier_set): Don't report modifiers from toggle key,
4 such as Scroll Lock, if the respective keys are treated as 4 such as Scroll Lock, if the respective keys are treated as
5 function keys, not as modifiers. This avoids destroying non-ASCII 5 function keys, not as modifiers. This avoids destroying non-ASCII
6 keyboard input when Scroll Lock is toggled ON. (Bug#1280) 6 keyboard input when Scroll Lock is toggled ON. (Bug#12806)
7 (modifier_set): Do not omit checking the Num Lock key.
8 7
92012-11-07 Dmitry Antipov <dmantipov@yandex.ru> 82012-11-07 Dmitry Antipov <dmantipov@yandex.ru>
10 9
diff --git a/src/w32fns.c b/src/w32fns.c
index b5e717f8980..f4f5aad90b4 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -2099,13 +2099,6 @@ modifier_set (int vkey)
2099 else 2099 else
2100 return (GetKeyState (vkey) & 0x1); 2100 return (GetKeyState (vkey) & 0x1);
2101 } 2101 }
2102 if (vkey == VK_NUMLOCK)
2103 {
2104 if (NILP (Vw32_enable_num_lock))
2105 return 0;
2106 else
2107 return (GetKeyState (vkey) & 0x1);
2108 }
2109 2102
2110 if (!modifiers_recorded) 2103 if (!modifiers_recorded)
2111 return (GetKeyState (vkey) & 0x8000); 2104 return (GetKeyState (vkey) & 0x8000);