diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-17 19:34:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-17 19:34:34 +0300 |
commit | 40ddc72b737a1040f5adab239f68e1fbc32c6a70 (patch) | |
tree | a9fa49c7eda5227b5dbb170f7be2586ff35f9943 /src/gui/widgets/textfield.cpp | |
parent | e9fb9da5bf17d3402781eb5205be7d2f794887ee (diff) | |
download | plus-40ddc72b737a1040f5adab239f68e1fbc32c6a70.tar.gz plus-40ddc72b737a1040f5adab239f68e1fbc32c6a70.tar.bz2 plus-40ddc72b737a1040f5adab239f68e1fbc32c6a70.tar.xz plus-40ddc72b737a1040f5adab239f68e1fbc32c6a70.zip |
Add strong typed bool LoseFocusOnTab.
Diffstat (limited to 'src/gui/widgets/textfield.cpp')
-rw-r--r-- | src/gui/widgets/textfield.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp index f4c6f11b6..b80e21eeb 100644 --- a/src/gui/widgets/textfield.cpp +++ b/src/gui/widgets/textfield.cpp @@ -107,7 +107,7 @@ ImageRect TextField::skin; TextField::TextField(const Widget2 *restrict const widget, const std::string &restrict text, - const bool loseFocusOnTab, + const LoseFocusOnTab loseFocusOnTab, ActionListener *restrict const listener, const std::string &restrict eventId, const bool sendAlwaysEvents) : @@ -475,7 +475,7 @@ bool TextField::handleNormalKeys(const InputActionT action, bool &consumed) break; case InputAction::GUI_TAB: - if (mLoseFocusOnTab) + if (mLoseFocusOnTab == LoseFocusOnTab_true) return false; consumed = true; break; |