aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2015-08-02 17:40:19 +0300
committerEli Zaretskii2015-08-02 17:40:19 +0300
commit0afb8fab99951262e81d6095302de4c84d7e8847 (patch)
tree55c14a4ee93e16e79d6727c910ab958fd62b8b07 /src
parent6d69b0690da24bb44f6c54932923da2286bc6e13 (diff)
downloademacs-0afb8fab99951262e81d6095302de4c84d7e8847.tar.gz
emacs-0afb8fab99951262e81d6095302de4c84d7e8847.zip
Fix handling of 1st keystroke on MS-Windows
* src/w32fns.c (globals_of_w32fns): Initialize after_deadkey to -1. This is needed to correctly handle the session's first keystroke, if it has any modifiers. (Bug#19994)
Diffstat (limited to 'src')
-rw-r--r--src/w32fns.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/w32fns.c b/src/w32fns.c
index 1c72974dca8..31d23c4d37d 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -9442,6 +9442,8 @@ globals_of_w32fns (void)
9442 else 9442 else
9443 w32_unicode_gui = 0; 9443 w32_unicode_gui = 0;
9444 9444
9445 after_deadkey = -1;
9446
9445 /* MessageBox does not work without this when linked to comctl32.dll 6.0. */ 9447 /* MessageBox does not work without this when linked to comctl32.dll 6.0. */
9446 InitCommonControls (); 9448 InitCommonControls ();
9447 9449