Fix F4 can exit app after Alt-Tab

This commit is contained in:
Nick Westgate 2017-04-16 22:42:27 +12:00
parent 74815bfe70
commit 6b001c490d

View File

@ -331,6 +331,9 @@ win_event_handler(HWND hwnd, UINT umsg, WPARAM wParam, LPARAM lParam)
} }
DragFinish((HDROP)wParam); DragFinish((HDROP)wParam);
break; break;
case WM_KILLFOCUS:
adb_all_keys_up(); // ALT-TAB doesn't send key-up messages
break;
} }
switch(umsg) { switch(umsg) {
HANDLE_MSG(hwnd, WM_KEYUP, WIN_EVENT_KEY); HANDLE_MSG(hwnd, WM_KEYUP, WIN_EVENT_KEY);