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 | cbbb2eb85c016a3f008014141de2b9142291b010 (patch) | |
tree | 720ce57e7cb091e91cb1684f694cadd7d547ecf1 /src | |
parent | 45ce441a5503626757105701c6095b3ea08a08ca (diff) | |
download | openttd-cbbb2eb85c016a3f008014141de2b9142291b010.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')
-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 */ |