summaryrefslogtreecommitdiff
path: root/intro_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'intro_gui.c')
-rw-r--r--intro_gui.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/intro_gui.c b/intro_gui.c
index 41cf45994..f53ab4145 100644
--- a/intro_gui.c
+++ b/intro_gui.c
@@ -210,6 +210,10 @@ static void AskAbandonGameWndProc(Window *w, WindowEvent *e) {
break;
}
break;
+ case WE_KEYPRESS: /* Exit game on pressing 'Enter' */
+ if (e->keypress.keycode == WKC_RETURN)
+ _exit_game = true;
+ break;
}
}