summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textfield.cpp
diff options
context:
space:
mode:
authorcpasjuste <cpasjuste@gmail.com>2020-04-26 11:21:01 +0200
committercpasjuste <cpasjuste@gmail.com>2020-04-26 11:21:01 +0200
commit4fd097015d4b38a64e0aad56720be020b1729348 (patch)
tree97f66922a28f2fcd1842b9ab7e22cb3de54324e7 /src/gui/widgets/textfield.cpp
parent82735cd2e2d11376fc4f2576542f0f578bb3ed7a (diff)
downloadplus-4fd097015d4b38a64e0aad56720be020b1729348.tar.gz
plus-4fd097015d4b38a64e0aad56720be020b1729348.tar.bz2
plus-4fd097015d4b38a64e0aad56720be020b1729348.tar.xz
plus-4fd097015d4b38a64e0aad56720be020b1729348.zip
switch: actually send "chatinput" action on new software keyboard text
switch: toggle software keyboard on textfield focus change
Diffstat (limited to 'src/gui/widgets/textfield.cpp')
-rw-r--r--src/gui/widgets/textfield.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp
index c3e1f197f..776f2a8b4 100644
--- a/src/gui/widgets/textfield.cpp
+++ b/src/gui/widgets/textfield.cpp
@@ -73,7 +73,7 @@
#include "gui/gui.h"
#include "gui/skin.h"
-#ifdef ANDROID
+#if defined(ANDROID) || defined(__SWITCH__)
#include "gui/windowmanager.h"
#endif // ANDROID
@@ -766,7 +766,7 @@ void TextField::fontChanged()
void TextField::mousePressed(MouseEvent &event)
{
-#ifdef ANDROID
+#if defined(ANDROID) || defined(__SWITCH__)
if (!WindowManager::isKeyboardVisible())
inputManager.executeAction(InputAction::SHOW_KEYBOARD);
#endif // ANDROID
@@ -789,7 +789,7 @@ void TextField::mousePressed(MouseEvent &event)
void TextField::focusGained(const Event &event A_UNUSED)
{
-#ifdef ANDROID
+#if defined(ANDROID) || defined(__SWITCH__)
if (!WindowManager::isKeyboardVisible())
inputManager.executeAction(InputAction::SHOW_KEYBOARD);
#endif // ANDROID