summaryrefslogtreecommitdiff
path: root/src/gui/windows/chatwindow.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/windows/chatwindow.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/windows/chatwindow.cpp')
-rw-r--r--src/gui/windows/chatwindow.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index ad7fc1573..759764e48 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -84,6 +84,10 @@
#include <fstream>
#include <sstream>
+#ifdef __SWITCH__
+#include "enums/input/keyvalue.h"
+#endif
+
#include "debug.h"
ChatWindow *chatWindow = nullptr;
@@ -818,6 +822,13 @@ void ChatWindow::keyPressed(KeyEvent &event)
{
const InputActionT actionId = event.getActionId();
std::string temp;
+#ifdef __SWITCH__
+ if(event.getKey().getValue() == KeyValue::TEXTINPUT)
+ {
+ action(ActionEvent(this, "chatinput"));
+ return;
+ } else
+#endif
if (actionId == InputAction::GUI_DOWN)
{
if (mCurHist != mHistory.end())