From 120ef46ea296729baee0c88c046008d8e18644fa Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 11 May 2013 22:25:21 +0300 Subject: Add ability to show onscreen keyboard if input field focused. --- src/gui/chatwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/chatwindow.cpp') 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); -- cgit v1.2.3-60-g2f50