From 6b001c490dd8fe4bee1a6b4115dc40fe2b7a2161 Mon Sep 17 00:00:00 2001 From: Nick Westgate Date: Sun, 16 Apr 2017 22:42:27 +1200 Subject: [PATCH] Fix F4 can exit app after Alt-Tab --- src/win_generic.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/win_generic.c b/src/win_generic.c index 149c8fd..91309c3 100644 --- a/src/win_generic.c +++ b/src/win_generic.c @@ -331,6 +331,9 @@ win_event_handler(HWND hwnd, UINT umsg, WPARAM wParam, LPARAM lParam) } DragFinish((HDROP)wParam); break; + case WM_KILLFOCUS: + adb_all_keys_up(); // ALT-TAB doesn't send key-up messages + break; } switch(umsg) { HANDLE_MSG(hwnd, WM_KEYUP, WIN_EVENT_KEY);