From 0afb8fab99951262e81d6095302de4c84d7e8847 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 2 Aug 2015 17:40:19 +0300 Subject: [PATCH] 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) --- src/w32fns.c | 2 ++ 1 file changed, 2 insertions(+) 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) else w32_unicode_gui = 0; + after_deadkey = -1; + /* MessageBox does not work without this when linked to comctl32.dll 6.0. */ InitCommonControls (); -- 2.11.4.GIT