diff options
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 84a13ddba..fe6163877 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -366,8 +366,8 @@ bool Gui::handleKeyInput2() // If the key event hasn't been consumed and // tabbing is enable check for tab press and // change focus. - if (!keyEventConsumed && mTabbing - && keyInput.getActionId() == Input::KEY_GUI_TAB + if (!keyEventConsumed && mTabbing && keyInput.getActionId() + == static_cast<int>(Input::KEY_GUI_TAB) && keyInput.getType() == gcn::KeyInput::PRESSED) { if (keyInput.isShiftPressed()) |