summaryrefslogtreecommitdiff
path: root/intro_gui.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-12-15 11:42:05 +0000
committerdarkvater <darkvater@openttd.org>2004-12-15 11:42:05 +0000
commitc8ca2a860412b7fb85bb56e1fc0c7a93b0d0ec6f (patch)
treeac704b076c9898575f8fd515e36058e300274bdc /intro_gui.c
parentf3ca6a9180dd643ca3c7f3dd1a656818a9781ccd (diff)
downloadopenttd-c8ca2a860412b7fb85bb56e1fc0c7a93b0d0ec6f.tar.xz
(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/)
Diffstat (limited to 'intro_gui.c')
-rw-r--r--intro_gui.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/intro_gui.c b/intro_gui.c
index cde62d1d9..74716f0ca 100644
--- a/intro_gui.c
+++ b/intro_gui.c
@@ -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;
+
}
}