Skip to content

Commit

Permalink
fix zoom window staying up if you are holding ctrl while placing it
Browse files Browse the repository at this point in the history
press z -> ctrl, then release z -> ctrl
  • Loading branch information
jacob1 committed Jun 26, 2015
1 parent 80bf240 commit f95186d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/gui/game/GameView.cpp
Expand Up @@ -1595,11 +1595,8 @@ void GameView::OnKeyRelease(int key, Uint16 character, bool shift, bool ctrl, bo
disableShiftBehaviour();
break;
case 'z':
if(!ctrl)
{
if(!zoomCursorFixed && !alt)
c->SetZoomEnabled(false);
}
if(!zoomCursorFixed && !alt)
c->SetZoomEnabled(false);
break;
}
}
Expand Down

0 comments on commit f95186d

Please sign in to comment.