mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-11-03 17:24:24 +00:00 
			
		
		
		
	Nav: Fixed SetItemDefaultFocus from stealing default focus when we are initializing default focus for a menu bar layer (#787)
This commit is contained in:
		@@ -2420,7 +2420,7 @@ struct ExampleAppConsole
 | 
			
		||||
 | 
			
		||||
        // Demonstrate keeping focus on the input box
 | 
			
		||||
        ImGui::SetItemDefaultFocus();
 | 
			
		||||
        if (ImGui::IsItemHovered() || reclaim_focus)
 | 
			
		||||
        if (reclaim_focus) //|| ImGui::IsItemHovered())
 | 
			
		||||
            ImGui::SetKeyboardFocusHere(-1); // Auto focus previous widget
 | 
			
		||||
 | 
			
		||||
        ImGui::End();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user