From c065f08898c3314b8f3a27e5a5b6cb82f2440a4e Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 22 Mar 2006 06:43:25 +0000 Subject: [PATCH] Fixed bug #50 Using ctrl-alt-fn for flipping instead of alt-fn may help a few games that actually use that key combination. [Note: This is also consistent with X11 on the Linux console] --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401587 --- src/video/fbcon/SDL_fbevents.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/video/fbcon/SDL_fbevents.c b/src/video/fbcon/SDL_fbevents.c index 35ba01fee..4158c5568 100644 --- a/src/video/fbcon/SDL_fbevents.c +++ b/src/video/fbcon/SDL_fbevents.c @@ -922,7 +922,7 @@ static void handle_keyboard(_THIS) pressed = SDL_PRESSED; } TranslateKey(scancode, &keysym); - /* Handle Alt-FN for vt switch */ + /* Handle Ctrl-Alt-FN for vt switch */ switch (keysym.sym) { case SDLK_F1: case SDLK_F2: @@ -936,7 +936,8 @@ static void handle_keyboard(_THIS) case SDLK_F10: case SDLK_F11: case SDLK_F12: - if ( SDL_GetModState() & KMOD_ALT ) { + if ( (SDL_GetModState() & KMOD_CTRL) && + (SDL_GetModState() & KMOD_ALT) ) { if ( pressed ) { switch_vt(this, (keysym.sym-SDLK_F1)+1); }