mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 05:01:05 +01:00 
			
		
		
		
	Nav: Fixed using Alt to toggle the Menu layer when inside a Modal window. (#787) Tidying up todo items.
This commit is contained in:
		
							
								
								
									
										10
									
								
								imgui.cpp
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								imgui.cpp
									
									
									
									
									
								
							| @@ -9039,11 +9039,9 @@ static void ImGui::NavUpdateWindowing() | ||||
|     bool apply_toggle_layer = false; | ||||
|  | ||||
|     ImGuiWindow* modal_window = GetTopMostPopupModal(); | ||||
|     if (modal_window != NULL) | ||||
|     { | ||||
|     bool allow_windowing = (modal_window == NULL); | ||||
|     if (!allow_windowing) | ||||
|         g.NavWindowingTarget = NULL; | ||||
|         return; | ||||
|     } | ||||
|  | ||||
|     // Fade out | ||||
|     if (g.NavWindowingTargetAnim && g.NavWindowingTarget == NULL) | ||||
| @@ -9054,8 +9052,8 @@ static void ImGui::NavUpdateWindowing() | ||||
|     } | ||||
|  | ||||
|     // Start CTRL-TAB or Square+L/R window selection | ||||
|     bool start_windowing_with_gamepad = !g.NavWindowingTarget && IsNavInputTest(ImGuiNavInput_Menu, ImGuiInputReadMode_Pressed); | ||||
|     bool start_windowing_with_keyboard = !g.NavWindowingTarget && g.IO.KeyCtrl && IsKeyPressedMap(ImGuiKey_Tab) && (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard); | ||||
|     bool start_windowing_with_gamepad = allow_windowing && !g.NavWindowingTarget && IsNavInputTest(ImGuiNavInput_Menu, ImGuiInputReadMode_Pressed); | ||||
|     bool start_windowing_with_keyboard = allow_windowing && !g.NavWindowingTarget && g.IO.KeyCtrl && IsKeyPressedMap(ImGuiKey_Tab) && (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard); | ||||
|     if (start_windowing_with_gamepad || start_windowing_with_keyboard) | ||||
|         if (ImGuiWindow* window = g.NavWindow ? g.NavWindow : FindWindowNavFocusable(g.WindowsFocusOrder.Size - 1, -INT_MAX, -1)) | ||||
|         { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user