# HG changeset patch # User rubidium # Date 1221388231 0 # Node ID ba6ac391e138063fecbd22e14e5aaa1d69250577 # Parent 1dee92853a5da7bbf29eeae1c493a9259a6caa3d (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. diff -r 1dee92853a5d -r ba6ac391e138 src/network/network_chat_gui.cpp --- a/src/network/network_chat_gui.cpp Sun Sep 14 08:47:18 2008 +0000 +++ b/src/network/network_chat_gui.cpp Sun Sep 14 10:30:31 2008 +0000 @@ -467,6 +467,11 @@ } 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 */