| 369 | } |
| 370 | |
| 371 | void OnClick([[maybe_unused]] Point pt, WidgetID widget, [[maybe_unused]] int click_count) override |
| 372 | { |
| 373 | switch (widget) { |
| 374 | case WID_NC_SENDBUTTON: /* Send */ |
| 375 | SendChat(this->message_editbox.text.GetText(), this->dtype, this->dest); |
| 376 | [[fallthrough]]; |
| 377 | |
| 378 | case WID_NC_CLOSE: /* Cancel */ |
| 379 | this->Close(); |
| 380 | break; |
| 381 | } |
| 382 | } |
| 383 | |
| 384 | EventState OnKeyPress([[maybe_unused]] char32_t key, uint16_t keycode) override |
| 385 | { |