summaryrefslogtreecommitdiff
path: root/src/gui/chatwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-11 22:25:21 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-11 22:25:21 +0300
commit120ef46ea296729baee0c88c046008d8e18644fa (patch)
tree36ac86de113f11e60c31008ea15d286bb30d831d /src/gui/chatwindow.cpp
parentc4d16b36a373ba5609360e2698372926d7f2dc0f (diff)
downloadManaVerse-120ef46ea296729baee0c88c046008d8e18644fa.tar.gz
ManaVerse-120ef46ea296729baee0c88c046008d8e18644fa.tar.bz2
ManaVerse-120ef46ea296729baee0c88c046008d8e18644fa.tar.xz
ManaVerse-120ef46ea296729baee0c88c046008d8e18644fa.zip
Add ability to show onscreen keyboard if input field focused.
Diffstat (limited to 'src/gui/chatwindow.cpp')
-rw-r--r--src/gui/chatwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp
index 19555e90d..0e043ea71 100644
--- a/src/gui/chatwindow.cpp
+++ b/src/gui/chatwindow.cpp
@@ -73,12 +73,11 @@
/**
* The chat input hides when it loses focus. It is also invisible by default.
*/
-class ChatInput final : public TextField, public gcn::FocusListener
+class ChatInput final : public TextField
{
public:
ChatInput(ChatWindow *const window, TabbedArea *const tabs):
TextField(window, "", false),
- gcn::FocusListener(),
mWindow(window),
mChatTabs(tabs),
mFocusGaining(false)
@@ -93,8 +92,9 @@ class ChatInput final : public TextField, public gcn::FocusListener
* Called if the chat input loses focus. It will set itself to
* invisible as result.
*/
- void focusLost(const gcn::Event &event A_UNUSED)
+ void focusLost(const gcn::Event &event)
{
+ TextField::focusLost(event);
if (mFocusGaining || !config.getBoolValue("protectChatFocus"))
{
processVisible(false);