fixed 'quit' entry in help for Mac OS X; disabled Alt-X/Ctrl-Z on OS X (Cmd-Q is the one and only true way to quit here :-)
svn-id: r8505
This commit is contained in:
parent
8446d7d67e
commit
b8b80805c1
2 changed files with 11 additions and 6 deletions
|
@ -543,19 +543,20 @@ bool OSystem_SDL_Common::poll_event(Event *event) {
|
|||
break;
|
||||
}
|
||||
|
||||
// Ctrl-z and Alt-X quit
|
||||
if ((b == KBD_CTRL && ev.key.keysym.sym=='z') || (b == KBD_ALT && ev.key.keysym.sym=='x')) {
|
||||
event->event_code = EVENT_QUIT;
|
||||
return true;
|
||||
}
|
||||
|
||||
#ifdef MACOSX
|
||||
// On Macintosh', Cmd-Q quits
|
||||
if ((ev.key.keysym.mod & KMOD_META) && ev.key.keysym.sym=='q') {
|
||||
event->event_code = EVENT_QUIT;
|
||||
return true;
|
||||
}
|
||||
#else
|
||||
// Ctrl-z and Alt-X quit
|
||||
if ((b == KBD_CTRL && ev.key.keysym.sym=='z') || (b == KBD_ALT && ev.key.keysym.sym=='x')) {
|
||||
event->event_code = EVENT_QUIT;
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Ctr-Alt-<key> will change the GFX mode
|
||||
if (b == (KBD_CTRL|KBD_ALT)) {
|
||||
char keys[] = "1234567890";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue