[nostalgia,studio] Proper fix for input filtering

This commit is contained in:
2025-01-20 02:10:48 -06:00
parent 48e45c7dd6
commit 6170647c0c
4 changed files with 14 additions and 2 deletions
@@ -258,8 +258,7 @@ void PaletteEditorImGui::drawColorEditor() noexcept {
std::ignore = pushCommand<ApplyColorAllPagesCommand>(
m_pal, m_page, m_selectedColorRow);
}
if (ImGui::IsWindowFocused(ImGuiFocusedFlags_RootWindow) &&
!inputFocused && !m_pageRenameDlg.isOpen()) {
if (ig::mainWinHasFocus()) {
if (!ImGui::IsKeyDown(ImGuiKey_ModAlt)) {
numShortcuts(m_selectedColorRow, largestPage(m_pal));
} else {