diff options
author | cpasjuste <cpasjuste@gmail.com> | 2020-04-26 11:21:01 +0200 |
---|---|---|
committer | cpasjuste <cpasjuste@gmail.com> | 2020-04-26 11:21:01 +0200 |
commit | 4fd097015d4b38a64e0aad56720be020b1729348 (patch) | |
tree | 97f66922a28f2fcd1842b9ab7e22cb3de54324e7 /src/gui/windows | |
parent | 82735cd2e2d11376fc4f2576542f0f578bb3ed7a (diff) | |
download | manaverse-4fd097015d4b38a64e0aad56720be020b1729348.tar.gz manaverse-4fd097015d4b38a64e0aad56720be020b1729348.tar.bz2 manaverse-4fd097015d4b38a64e0aad56720be020b1729348.tar.xz manaverse-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')
-rw-r--r-- | src/gui/windows/chatwindow.cpp | 11 |
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()) |