summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 8d05fc26d..feabd79d5 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -323,10 +323,10 @@ bool Gui::handleKeyInput2()
continue;
}
- bool keyEventConsumed = false;
-
if (mFocusHandler)
{
+ bool keyEventConsumed = false;
+
// Send key inputs to the focused widgets
if (mFocusHandler->getFocused())
{