(svn r1095) -Fix: scenario editor road-build-gui works again altough shortcuts are screwed.

-Feature: Pressing enter on 'Abandon Game' returns to main menu (one less click \o/)
This commit is contained in:
darkvater
2004-12-15 11:42:05 +00:00
parent f3ca6a9180
commit c8ca2a8604
2 changed files with 16 additions and 7 deletions

View File

@@ -266,6 +266,12 @@ static void AskQuitGameWndProc(Window *w, WindowEvent *e) {
break;
}
break;
case WE_KEYPRESS: /* Return to main menu on pressing 'Enter' */
if (e->keypress.keycode == WKC_RETURN)
_switch_mode = SM_MENU;
break;
}
}