Skip to content

Commit

Permalink
BACKENDS: Set alt+f4 to be used for quitting on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Hoops committed Oct 1, 2011
1 parent 2883ebc commit 622e8d9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions backends/events/sdl/sdl-events.cpp
Expand Up @@ -436,6 +436,14 @@ bool SdlEventSource::handleKeyDown(SDL_Event &ev, Common::Event &event) {
event.type = Common::EVENT_QUIT;
return true;
}

#ifdef WIN32
// On Windows, also use the default Alt-F4 quit combination
if ((ev.key.keysym.mod & KMOD_ALT) && ev.key.keysym.sym == SDLK_F4) {
event.type = Common::EVENT_QUIT;
return true;
}
#endif
#endif

// Ctrl-u toggles mute
Expand Down

0 comments on commit 622e8d9

Please sign in to comment.