summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/gui.cpp3
-rw-r--r--src/gui/gui.h5
2 files changed, 1 insertions, 7 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 31722797f..e3b6d2cac 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -140,7 +140,6 @@ Gui::Gui() :
mGraphics(nullptr),
mInput(nullptr),
mFocusHandler(new FocusHandler),
- mTabbing(true),
mKeyListeners(),
mShiftPressed(false),
mMetaPressed(false),
@@ -485,7 +484,7 @@ 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()
+ if (!keyEventConsumed && keyInput.getActionId()
== static_cast<int>(Input::KEY_GUI_TAB)
&& keyInput.getType() == KeyInput::PRESSED)
{
diff --git a/src/gui/gui.h b/src/gui/gui.h
index ba1fa2e6b..82678601d 100644
--- a/src/gui/gui.h
+++ b/src/gui/gui.h
@@ -431,11 +431,6 @@ class Gui final
FocusHandler* mFocusHandler;
/**
- * True if tabbing is enabled, false otherwise.
- */
- bool mTabbing;
-
- /**
* Typedef.
*/
typedef std::list<KeyListener*> KeyListenerList;