Skip to content

Commit

Permalink
Fixed|Task Bar: When open, eat modifier key events
Browse files Browse the repository at this point in the history
When the task bar is open, we shouldn't wake up the game by giving it
stray modifier events (e.g., when typing in the console).
  • Loading branch information
skyjake committed Mar 10, 2014
1 parent 06fcf41 commit f389391
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doomsday/client/src/ui/widgets/taskbarwidget.cpp
Expand Up @@ -540,6 +540,12 @@ bool TaskBarWidget::handleEvent(Event const &event)
}
}

// Don't let modifier keys fall through to the game.
if(isOpen() && event.isKey() && event.as<KeyEvent>().isModifier())
{
return true;
}

if(event.type() == Event::KeyPress)
{
KeyEvent const &key = event.as<KeyEvent>();
Expand Down

0 comments on commit f389391

Please sign in to comment.