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 4f4adcf7..01193908 100644 --- a/src/nostalgia/modules/core/src/studio/paletteeditor/paletteeditor-imgui.cpp +++ b/src/nostalgia/modules/core/src/studio/paletteeditor/paletteeditor-imgui.cpp @@ -260,8 +260,8 @@ void PaletteEditorImGui::drawColorEditor() noexcept { m_selectedColorRow = i; } } - if (ImGui::GetIO().KeysDown[ImGuiKey_0]) { - m_selectedColorRow = ox::min(9, largestPage(m_pal)); + if (ImGui::IsKeyPressed(ImGuiKey_0, false)) { + m_selectedColorRow = ox::min(9, largestPage(m_pal) - 1); } } auto const newColor = color16(r, g, b, a);