summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textfield.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-30 21:03:20 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-31 12:16:43 +0300
commitc0197404a15a3937ef3cd21f48a09e691a96518f (patch)
tree582b01cfc1c716b19122fe28f57abefb3bf5b716 /src/gui/widgets/textfield.cpp
parent9bb11133522836a9c5e251550ac88c9a4e091c0e (diff)
downloadmv-c0197404a15a3937ef3cd21f48a09e691a96518f.tar.gz
mv-c0197404a15a3937ef3cd21f48a09e691a96518f.tar.bz2
mv-c0197404a15a3937ef3cd21f48a09e691a96518f.tar.xz
mv-c0197404a15a3937ef3cd21f48a09e691a96518f.zip
fix code style.
Diffstat (limited to 'src/gui/widgets/textfield.cpp')
-rw-r--r--src/gui/widgets/textfield.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp
index 0eb16867a..fb1bcc1db 100644
--- a/src/gui/widgets/textfield.cpp
+++ b/src/gui/widgets/textfield.cpp
@@ -65,7 +65,6 @@
#include "gui/widgets/textfield.h"
-#include "client.h"
#include "settings.h"
#include "input/inputmanager.h"
@@ -73,6 +72,9 @@
#include "gui/gui.h"
#include "gui/skin.h"
#include "gui/viewport.h"
+#ifdef ANDROID
+#include "gui/windowmanager.h"
+#endif
#include "gui/fonts/font.h"
@@ -83,6 +85,7 @@
#include "utils/copynpaste.h"
#include "utils/delete2.h"
+#include "utils/stringutils.h"
#include "utils/timer.h"
#undef DELETE // Win32 compatibility hack
@@ -700,7 +703,7 @@ void TextField::fontChanged()
void TextField::mousePressed(MouseEvent &event)
{
#ifdef ANDROID
- if (!client->isKeyboardVisible())
+ if (!WindowManager::isKeyboardVisible())
inputManager.executeAction(InputAction::SHOW_KEYBOARD);
#endif
event.consume();
@@ -737,7 +740,7 @@ void TextField::mousePressed(MouseEvent &event)
void TextField::focusGained(const Event &event A_UNUSED)
{
#ifdef ANDROID
- if (!client->isKeyboardVisible())
+ if (!WindowManager::isKeyboardVisible())
inputManager.executeAction(InputAction::SHOW_KEYBOARD);
#endif
}