From e40b11246dc9296d173e8c6a47f32993aa869030 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 23 Jan 2025 21:56:47 -0600 Subject: [PATCH] [nostalgia/gfx/studio/paletteeditor] Fix num key shortcuts to ignore if ctrl is down --- .../gfx/src/studio/paletteeditor/paletteeditor-imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nostalgia/modules/gfx/src/studio/paletteeditor/paletteeditor-imgui.cpp b/src/nostalgia/modules/gfx/src/studio/paletteeditor/paletteeditor-imgui.cpp index fe2189af..35e4b1e3 100644 --- a/src/nostalgia/modules/gfx/src/studio/paletteeditor/paletteeditor-imgui.cpp +++ b/src/nostalgia/modules/gfx/src/studio/paletteeditor/paletteeditor-imgui.cpp @@ -258,7 +258,7 @@ void PaletteEditorImGui::drawColorEditor() noexcept { std::ignore = pushCommand( m_pal, m_page, m_selectedColorRow); } - if (ig::mainWinHasFocus() && !inputFocused) { + if (ig::mainWinHasFocus() && !inputFocused && !ImGui::IsKeyDown(ImGuiKey_ModCtrl)) { if (!ImGui::IsKeyDown(ImGuiKey_ModAlt)) { numShortcuts(m_selectedColorRow, largestPage(m_pal)); } else {