(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.
authorrubidium
Sun, 14 Sep 2008 10:30:31 +0000
changeset 10132 ba6ac391e138
parent 10131 1dee92853a5d
child 10133 555419932fe2
(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.
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 */