diff options
| author | Karl Heuer | 1996-05-22 03:26:55 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-05-22 03:26:55 +0000 |
| commit | 891560d60e616def451dbf39cf8f19fa04e3bdc8 (patch) | |
| tree | 0722ec3b6f9d679452f5a54fc39d4c28649c0dce /src | |
| parent | 139b57253d3f96a3584d76fd6ff9d541d2e78ab5 (diff) | |
| download | emacs-891560d60e616def451dbf39cf8f19fa04e3bdc8.tar.gz emacs-891560d60e616def451dbf39cf8f19fa04e3bdc8.zip | |
(modifier_set): Check toggle state of CapsLock even
if modifiers are not being recorded.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32fns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index f6f3f4aec1c..9a1a4cae213 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -2754,6 +2754,8 @@ reset_modifiers () | |||
| 2754 | static int | 2754 | static int |
| 2755 | modifier_set (int vkey) | 2755 | modifier_set (int vkey) |
| 2756 | { | 2756 | { |
| 2757 | if (vkey == VK_CAPITAL) | ||
| 2758 | return (GetKeyState (vkey) & 0x1); | ||
| 2757 | if (!modifiers_recorded) | 2759 | if (!modifiers_recorded) |
| 2758 | return (GetKeyState (vkey) & 0x8000); | 2760 | return (GetKeyState (vkey) & 0x8000); |
| 2759 | 2761 | ||
| @@ -2767,8 +2769,6 @@ modifier_set (int vkey) | |||
| 2767 | return modifiers[EMACS_LMENU]; | 2769 | return modifiers[EMACS_LMENU]; |
| 2768 | case VK_RMENU: | 2770 | case VK_RMENU: |
| 2769 | return modifiers[EMACS_RMENU]; | 2771 | return modifiers[EMACS_RMENU]; |
| 2770 | case VK_CAPITAL: | ||
| 2771 | return (GetKeyState (vkey) & 0x1); | ||
| 2772 | default: | 2772 | default: |
| 2773 | break; | 2773 | break; |
| 2774 | } | 2774 | } |