Windows: ignore Alt+F4

This commit is contained in:
kanjitalk755 2019-03-30 13:23:52 +09:00
parent 62deb590a6
commit 7131e8205d
1 changed files with 3 additions and 0 deletions

View File

@ -2287,6 +2287,9 @@ static void handle_events(void)
// Window "close" widget clicked
case SDL_QUIT:
#ifdef WIN32
if (SDL_GetModState() & (KMOD_LALT | KMOD_RALT)) break;
#endif
ADBKeyDown(0x7f); // Power key
ADBKeyUp(0x7f);
break;