mirror of
https://github.com/Drezil/imgui.git
synced 2025-03-31 00:12:44 +00:00
Nav: programmatic call to SetKeyboardFocusHere() doesn't quality as a nav input (doesn't position mouse) (#323)
This commit is contained in:
parent
e2dd48ae65
commit
8d0186c82b
@ -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.
|
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)
|
if (window->FocusIdxAllCounter == window->FocusIdxAllRequestCurrent)
|
||||||
{
|
|
||||||
g.NavTabbedId = id;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
if (allow_keyboard_focus && window->FocusIdxTabCounter == window->FocusIdxTabRequestCurrent)
|
if (allow_keyboard_focus && window->FocusIdxTabCounter == window->FocusIdxTabRequestCurrent)
|
||||||
{
|
{
|
||||||
g.NavTabbedId = id;
|
g.NavTabbedId = id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user