From 7d631ad7a1bd84d22dda6a618e961bbe281fb17a Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 29 Sep 2024 23:17:47 -0500 Subject: [PATCH] [nostalgia/core/studio] Disable PaletteEditor num key shorts when page rename is open --- .../core/src/studio/paletteeditor/paletteeditor-imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 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 c48927c..ca5461b 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 @@ -253,7 +253,7 @@ void PaletteEditorImGui::drawColorEditor() noexcept { std::ignore = pushCommand( m_pal, m_page, m_selectedColorRow); } - if (!inputFocused) { + if (!inputFocused && !m_pageRename.isOpen()) { auto const lastColor = largestPage(m_pal) - 1; if (ImGui::IsKeyPressed(ImGuiKey_0, false)) { m_selectedColorRow = ox::min(9, lastColor);