mirror of https://github.com/OpenTTD/OpenTTD
(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.
parent
45ce441a55
commit
cbbb2eb85c
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue