summaryrefslogtreecommitdiff
path: root/src/gui/windows/chatwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/chatwindow.cpp')
-rw-r--r--src/gui/windows/chatwindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index 759764e48..7fc059f5c 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -823,11 +823,12 @@ void ChatWindow::keyPressed(KeyEvent &event)
const InputActionT actionId = event.getActionId();
std::string temp;
#ifdef __SWITCH__
- if(event.getKey().getValue() == KeyValue::TEXTINPUT)
+ if (event.getKey().getValue() == KeyValue::TEXTINPUT)
{
action(ActionEvent(this, "chatinput"));
return;
- } else
+ }
+ else
#endif
if (actionId == InputAction::GUI_DOWN)
{