summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index 8a11969a..c02f5160 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -327,3 +327,9 @@ void ChatWindow::keyPress(const gcn::Key &key)
chatInput->setCaretPosition(chatInput->getText().length());
}
}
+
+void ChatWindow::setInputText(std::string input_str)
+{
+ chatInput->setText(input_str + " ");
+ requestChatFocus();
+}