src/network/network_chat_gui.cpp
changeset 10132 ba6ac391e138
parent 9925 e6abeb1fc804
child 10134 213b85713d03
equal deleted inserted replaced
10131:1dee92853a5d 10132:ba6ac391e138
   465 		if (keycode == WKC_TAB) {
   465 		if (keycode == WKC_TAB) {
   466 			ChatTabCompletion();
   466 			ChatTabCompletion();
   467 		} else {
   467 		} else {
   468 			_chat_tab_completion_active = false;
   468 			_chat_tab_completion_active = false;
   469 			switch (this->HandleEditBoxKey(2, key, keycode, state)) {
   469 			switch (this->HandleEditBoxKey(2, key, keycode, state)) {
       
   470 				default: NOT_REACHED();
       
   471 				case 0: {
       
   472 					Window *osk = FindWindowById(WC_OSK, 0);
       
   473 					if (osk != NULL && osk->parent == this) osk->OnInvalidateData();
       
   474 				} break;
   470 				case 1: /* Return */
   475 				case 1: /* Return */
   471 					SendChat(this->text.buf, this->dtype, this->dest);
   476 					SendChat(this->text.buf, this->dtype, this->dest);
   472 				/* FALLTHROUGH */
   477 				/* FALLTHROUGH */
   473 				case 2: /* Escape */ delete this; break;
   478 				case 2: /* Escape */ delete this; break;
   474 			}
   479 			}