(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 60ad02c341
commit 70a91d6c60
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;
}
}