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 a645014b..ac179f65 100644 --- a/src/nostalgia/modules/core/src/studio/paletteeditor/paletteeditor-imgui.cpp +++ b/src/nostalgia/modules/core/src/studio/paletteeditor/paletteeditor-imgui.cpp @@ -253,13 +253,13 @@ void PaletteEditorImGui::drawColorEditor() noexcept { std::ignore = pushCommand( m_pal, m_page, m_selectedColorRow); } - if (!inputFocused && !m_pageRename.isOpen()) { + if (!inputFocused && !m_pageRename.isOpen() && !ImGui::IsKeyDown(ImGuiKey_ModAlt)) { auto const lastColor = largestPage(m_pal) - 1; - if (ImGui::IsKeyPressed(ImGuiKey_0, false)) { + if (ImGui::IsKeyPressed(ImGuiKey_0)) { m_selectedColorRow = ox::min(9, lastColor); } else for (auto i = 9u; i < 10; --i) { auto const key = static_cast(ImGuiKey_1 + i); - if (ImGui::IsKeyPressed(key, false)) { + if (ImGui::IsKeyPressed(key)) { m_selectedColorRow = ox::min(i, lastColor); break; }