From: Eli Zaretskii Date: Sun, 2 Aug 2015 14:40:19 +0000 (+0300) Subject: Fix handling of 1st keystroke on MS-Windows X-Git-Tag: emacs-25.0.90~1391 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0afb8fab99951262e81d6095302de4c84d7e8847;p=emacs.git 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) --- 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 ();