From 8d0186c82b40d867a10a0b2a658b4d443c22a82c Mon Sep 17 00:00:00 2001 From: ocornut Date: Sat, 30 Jul 2016 19:08:20 +0200 Subject: [PATCH] Nav: programmatic call to SetKeyboardFocusHere() doesn't quality as a nav input (doesn't position mouse) (#323) --- imgui.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/imgui.cpp b/imgui.cpp index bc8da2f4..635a1516 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -2149,10 +2149,7 @@ bool ImGui::FocusableItemRegister(ImGuiWindow* window, ImGuiID id, bool tab_stop window->FocusIdxTabRequestNext = window->FocusIdxTabCounter + (g.IO.KeyShift ? (allow_keyboard_focus ? -1 : 0) : +1); // Modulo on index will be applied at the end of frame once we've got the total counter of items. if (window->FocusIdxAllCounter == window->FocusIdxAllRequestCurrent) - { - g.NavTabbedId = id; return true; - } if (allow_keyboard_focus && window->FocusIdxTabCounter == window->FocusIdxTabRequestCurrent) { g.NavTabbedId = id;