diff options
| author | Eli Zaretskii | 2012-11-07 23:48:18 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-11-07 23:48:18 +0200 |
| commit | 6b064c16b1761605c87c0d3dbee91f6c3f6030d0 (patch) | |
| tree | d8f9e73847c8146cd861b35a498cbc05f8ada668 /src | |
| parent | dab72075f5caae9f0603b358d58023f4f210d876 (diff) | |
| download | emacs-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/ChangeLog | 3 | ||||
| -rw-r--r-- | src/w32fns.c | 7 |
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 | ||
| 9 | 2012-11-07 Dmitry Antipov <dmantipov@yandex.ru> | 8 | 2012-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); |