src/video/fbcon/SDL_fbevents.c
changeset 1582 43a565749fbf
parent 1402 d910939febfa
child 1584 b786d9c15e42
--- a/src/video/fbcon/SDL_fbevents.c	Wed Mar 22 06:08:59 2006 +0000
+++ b/src/video/fbcon/SDL_fbevents.c	Wed Mar 22 06:43:25 2006 +0000
@@ -922,7 +922,7 @@
 			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 @@
 		    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);
 				}