[nostalgia/core/studio/paletteeditor] Ignore keyboard input when popup is open
This commit is contained in:
		| @@ -258,7 +258,8 @@ void PaletteEditorImGui::drawColorEditor() noexcept { | |||||||
| 		std::ignore = pushCommand<ApplyColorAllPagesCommand>( | 		std::ignore = pushCommand<ApplyColorAllPagesCommand>( | ||||||
| 				m_pal, m_page, m_selectedColorRow); | 				m_pal, m_page, m_selectedColorRow); | ||||||
| 	} | 	} | ||||||
| 	if (!inputFocused && !m_pageRenameDlg.isOpen()) { | 	if (ImGui::IsWindowFocused(ImGuiFocusedFlags_RootWindow) && | ||||||
|  | 	    !inputFocused && !m_pageRenameDlg.isOpen()) { | ||||||
| 		if (!ImGui::IsKeyDown(ImGuiKey_ModAlt)) { | 		if (!ImGui::IsKeyDown(ImGuiKey_ModAlt)) { | ||||||
| 			numShortcuts(m_selectedColorRow, largestPage(m_pal)); | 			numShortcuts(m_selectedColorRow, largestPage(m_pal)); | ||||||
| 		} else { | 		} else { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user