Merge pull request #16 from sicklittlemonkey/master

Fix F4 can exit app after Alt-Tab
This commit is contained in:
Dagen Brock 2018-08-24 05:14:29 -05:00 committed by GitHub
commit 02f8357935
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -301,6 +301,9 @@ LRESULT CALLBACK win_event_handler(HWND hwnd, UINT umsg, WPARAM wParam, LPARAM l
} }
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);