mirror of
https://github.com/uowuo/abaddon.git
synced 2024-11-10 14:10:10 +00:00
dont do anything on enter if chat input is empty
This commit is contained in:
parent
6f7ea234e5
commit
d8b788829a
@ -139,6 +139,7 @@ bool ChatWindow::on_key_press_event(GdkEventKey *e) {
|
||||
|
||||
auto buf = m_input->get_buffer();
|
||||
auto text = buf->get_text();
|
||||
if (text.size() == 0) return true;
|
||||
buf->set_text("");
|
||||
|
||||
m_signal_action_chat_submit.emit(text, m_active_channel);
|
||||
|
Loading…
Reference in New Issue
Block a user