From c6fbcd815105ba7be3897f72617f610cc1502dfe Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 20 Jan 2025 01:33:23 -0600 Subject: [PATCH] [nostalgia/core/studio/paletteeditor] Ignore keyboard input when popup is open --- .../core/src/studio/paletteeditor/paletteeditor-imgui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deps/nostalgia/src/nostalgia/modules/core/src/studio/paletteeditor/paletteeditor-imgui.cpp b/deps/nostalgia/src/nostalgia/modules/core/src/studio/paletteeditor/paletteeditor-imgui.cpp index d6bc4a3..9e2a8a4 100644 --- a/deps/nostalgia/src/nostalgia/modules/core/src/studio/paletteeditor/paletteeditor-imgui.cpp +++ b/deps/nostalgia/src/nostalgia/modules/core/src/studio/paletteeditor/paletteeditor-imgui.cpp @@ -258,7 +258,8 @@ void PaletteEditorImGui::drawColorEditor() noexcept { std::ignore = pushCommand( m_pal, m_page, m_selectedColorRow); } - if (!inputFocused && !m_pageRenameDlg.isOpen()) { + if (ImGui::IsWindowFocused(ImGuiFocusedFlags_RootWindow) && + !inputFocused && !m_pageRenameDlg.isOpen()) { if (!ImGui::IsKeyDown(ImGuiKey_ModAlt)) { numShortcuts(m_selectedColorRow, largestPage(m_pal)); } else {