Skip to content

Commit

Permalink
Merge pull request #44 from gerdoe-jr/fix_chat_esc
Browse files Browse the repository at this point in the history
Don't send chat message on chatbox close event
  • Loading branch information
Jupeyy authored Jan 7, 2025
2 parents a69a7d7 + cc0dfa1 commit 9e5ad36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions game/client-ui/src/chat/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ fn render_inner(ui: &mut egui::Ui, ui_state: &mut UiState, pipe: &mut UiRenderPi
if (matches!(pipe.user_data.mode, ChatMode::Whisper(Some(_)))
|| !matches!(pipe.user_data.mode, ChatMode::Whisper(_)))
&& !pipe.user_data.msg.is_empty()
&& !is_escape
{
pipe.user_data.chat_events.push(ChatEvent::MsgSend {
msg: pipe.user_data.msg.clone(),
Expand Down

0 comments on commit 9e5ad36

Please sign in to comment.