Skip to content

Commit

Permalink
Fixed bug #50
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
slouken committed Mar 22, 2006
1 parent 7d4244d commit f8728d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/video/fbcon/SDL_fbevents.c
Expand Up @@ -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:
Expand All @@ -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);
}
Expand Down

0 comments on commit f8728d8

Please sign in to comment.