mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-03 22:51:06 +01:00 
			
		
		
		
	Internal: Tabbing/Focus: Tidying up old code, moved some state to context instead of window. Storing new data will allow us to fix the bug mentioned in #2215 (probably in next commit).
This commit is contained in:
		@@ -3275,7 +3275,7 @@ bool ImGui::InputTextEx(const char* label, char* buf, int buf_size, const ImVec2
 | 
			
		||||
        state = &g.InputTextState;
 | 
			
		||||
 | 
			
		||||
    const bool focus_requested = FocusableItemRegister(window, id);
 | 
			
		||||
    const bool focus_requested_by_code = focus_requested && (window->FocusIdxAllCounter == window->FocusIdxAllRequestCurrent);
 | 
			
		||||
    const bool focus_requested_by_code = focus_requested && (g.FocusRequestCurrWindow == window && g.FocusRequestCurrCounterAll == window->DC.FocusCounterAll);
 | 
			
		||||
    const bool focus_requested_by_tab = focus_requested && !focus_requested_by_code;
 | 
			
		||||
 | 
			
		||||
    const bool user_clicked = hovered && io.MouseClicked[0];
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user