From 1f6fefdb68d0638da774c1a7c37173e589ea65a8 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/src/nostalgia/modules/core/src/studio/paletteeditor/paletteeditor-imgui.cpp b/src/nostalgia/modules/core/src/studio/paletteeditor/paletteeditor-imgui.cpp index c48927c3..ca5461bd 100644 --- a/src/nostalgia/modules/core/src/studio/paletteeditor/paletteeditor-imgui.cpp +++ b/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);