Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Commit

Permalink
Merge pull request #1 from zgavin/patch-1
Browse files Browse the repository at this point in the history
Fix escape key not working properly in city view
  • Loading branch information
chaorace authored Oct 29, 2016
2 parents f91b7cc + 5488c61 commit 87fa7ae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions UI/Panels/CityPanelOverview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -785,8 +785,7 @@ end
function KeyHandler( key:number )
if key == Keys.VK_ESCAPE then
if ( m_isShowingPanel ) then
LuaEvents.CityPanelOverview_CloseButton();
Close();
UI.SetInterfaceMode(InterfaceModeTypes.SELECTION);
return true;
else
return false;
Expand Down Expand Up @@ -890,4 +889,4 @@ function Initialize()
Events.GovernmentPolicyChanged.Add( OnPolicyChanged );
Events.GovernmentPolicyObsoleted.Add( OnPolicyChanged );
end
Initialize();
Initialize();

0 comments on commit 87fa7ae

Please sign in to comment.