Fix F4 can exit app after Alt-Tab

This commit is contained in:
Nick Westgate 2017-04-16 10:18:11 +00:00
parent d83331d9ee
commit 8dda6fd620
1 changed files with 3 additions and 0 deletions

View File

@ -329,6 +329,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);