equal
deleted
inserted
replaced
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 } |