mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Close chat input after sending
This commit is contained in:
parent
09de52f310
commit
741e9b8cb0
1 changed files with 4 additions and 1 deletions
|
|
@ -27,6 +27,7 @@
|
|||
#include "game/expansion_profile.hpp"
|
||||
#include "core/logger.hpp"
|
||||
#include <imgui.h>
|
||||
#include <imgui_internal.h>
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
|
|
@ -1061,7 +1062,9 @@ void GameScreen::renderChatWindow(game::GameHandler& gameHandler) {
|
|||
ImGuiInputTextFlags inputFlags = ImGuiInputTextFlags_EnterReturnsTrue | ImGuiInputTextFlags_CallbackAlways;
|
||||
if (ImGui::InputText("##ChatInput", chatInputBuffer, sizeof(chatInputBuffer), inputFlags, inputCallback, this)) {
|
||||
sendChatMessage(gameHandler);
|
||||
refocusChatInput = true;
|
||||
// Close chat input on send so movement keys work immediately.
|
||||
refocusChatInput = false;
|
||||
ImGui::ClearActiveID();
|
||||
}
|
||||
ImGui::PopStyleColor();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue