mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-28 01:20:55 +01:00
Nav: fixed programmatic nav calls (e.g. SetKeyboardFocusHere() from storing io.KeyMods)
Note that the g.NavMoveKeyMods -> g.NavJustMovedToKeyMods chain is not used in this branch. Multi-select uses it.
This commit is contained in:
parent
cfc71ab7c5
commit
376035fd01
@ -11362,7 +11362,7 @@ void ImGui::NavMoveRequestSubmit(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavM
|
|||||||
g.NavMoveFlags = move_flags;
|
g.NavMoveFlags = move_flags;
|
||||||
g.NavMoveScrollFlags = scroll_flags;
|
g.NavMoveScrollFlags = scroll_flags;
|
||||||
g.NavMoveForwardToNextFrame = false;
|
g.NavMoveForwardToNextFrame = false;
|
||||||
g.NavMoveKeyMods = g.IO.KeyMods;
|
g.NavMoveKeyMods = (move_flags & ImGuiNavMoveFlags_FocusApi) ? 0 : g.IO.KeyMods;
|
||||||
g.NavMoveResultLocal.Clear();
|
g.NavMoveResultLocal.Clear();
|
||||||
g.NavMoveResultLocalVisible.Clear();
|
g.NavMoveResultLocalVisible.Clear();
|
||||||
g.NavMoveResultOther.Clear();
|
g.NavMoveResultOther.Clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user