Fix action bar keyboard shortcuts not working

Added ImGuiWindowFlags_NoInputs to action bar window so it doesn't capture
keyboard input. Previously, hovering over or clicking the action bar would
set WantCaptureKeyboard=true, blocking the 1-9,0,-,= hotkeys from working.
This commit is contained in:
Kelsi 2026-02-09 01:11:49 -08:00
parent 0ce23cf7bd
commit dbf3038560

View file

@ -2324,7 +2324,7 @@ void GameScreen::renderActionBar(game::GameHandler& gameHandler) {
ImGuiWindowFlags flags = ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove |
ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoTitleBar |
ImGuiWindowFlags_NoScrollbar;
ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoInputs;
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 4.0f);
ImGui::PushStyleColor(ImGuiCol_WindowBg, ImVec4(0.05f, 0.05f, 0.05f, 0.9f));