diff options
author | rubidium <rubidium@openttd.org> | 2008-09-14 10:30:31 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-09-14 10:30:31 +0000 |
commit | de532c616f34210b210de690320466182942c36c (patch) | |
tree | 720ce57e7cb091e91cb1684f694cadd7d547ecf1 /src/network/network_chat_gui.cpp | |
parent | fb77ced24a37a5754c9738a7fa74c3d028228849 (diff) | |
download | openttd-de532c616f34210b210de690320466182942c36c.tar.xz |
(svn r14318) -Fix [FS#2296]: OSK of the chat box did not get updated. This as the chatbox got a higher priority than the OSK instead of the usual other way around.
Diffstat (limited to 'src/network/network_chat_gui.cpp')
-rw-r--r-- | src/network/network_chat_gui.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp index 38bb2ee9b..a62dc622a 100644 --- a/src/network/network_chat_gui.cpp +++ b/src/network/network_chat_gui.cpp @@ -467,6 +467,11 @@ struct NetworkChatWindow : public QueryStringBaseWindow { } else { _chat_tab_completion_active = false; switch (this->HandleEditBoxKey(2, key, keycode, state)) { + default: NOT_REACHED(); + case 0: { + Window *osk = FindWindowById(WC_OSK, 0); + if (osk != NULL && osk->parent == this) osk->OnInvalidateData(); + } break; case 1: /* Return */ SendChat(this->text.buf, this->dtype, this->dest); /* FALLTHROUGH */ |