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
commit70a91d6c6046bde997c0f775f6f0e9d98def7e10 (patch)
treeac704b076c9898575f8fd515e36058e300274bdc /intro_gui.c
parent60ad02c341b0e937aa0a04bcd5505c44c7d4eada (diff)
downloadopenttd-70a91d6c6046bde997c0f775f6f0e9d98def7e10.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;
+
}
}