diff options
Diffstat (limited to 'src/gui/windows/chatwindow.cpp')
-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()) |