From f389391bc8f9c53195bc0f81454ee52d101a69a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= Date: Mon, 10 Mar 2014 20:05:07 +0200 Subject: [PATCH] Fixed|Task Bar: When open, eat modifier key events 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). --- doomsday/client/src/ui/widgets/taskbarwidget.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doomsday/client/src/ui/widgets/taskbarwidget.cpp b/doomsday/client/src/ui/widgets/taskbarwidget.cpp index b04b5abed1..88586ec436 100644 --- a/doomsday/client/src/ui/widgets/taskbarwidget.cpp +++ b/doomsday/client/src/ui/widgets/taskbarwidget.cpp @@ -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().isModifier()) + { + return true; + } + if(event.type() == Event::KeyPress) { KeyEvent const &key = event.as();