Ignore F-keys on Arrival Report Screens, so that only the spacebar is accepted. This avoids bypassing mission screens on docking when using F-keys on this page.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4588 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Eric Walch 2011-07-26 21:32:34 +00:00
parent 30c068ef53
commit 47a8486aef

View File

@ -3119,9 +3119,13 @@ static BOOL toggling_music;
// mission screens
exceptionContext = @"GUI keys";
if (gui_screen == GUI_SCREEN_MISSION)
[self pollDemoControls: delta_t];
{
[self pollDemoControls: delta_t]; // don't switch away from mission screens
}
else
[self pollGuiScreenControls]; // don't switch away from mission screens
{
if (gui_screen != GUI_SCREEN_REPORT)[self pollGuiScreenControls]; // don't switch away from report screens
}
[self pollGuiArrowKeyControls:delta_t];
NS_HANDLER