MultiSelect: Shift+Tab doesn't enable Shift select on landing item.
This commit is contained in:
parent
a8a1f29512
commit
529c73ba21
@ -7336,7 +7336,7 @@ ImGuiMultiSelectIO* ImGui::BeginMultiSelect(ImGuiMultiSelectFlags flags, int sel
|
|||||||
window->DC.NavLayersActiveMask |= 1 << ImGuiNavLayer_Main;
|
window->DC.NavLayersActiveMask |= 1 << ImGuiNavLayer_Main;
|
||||||
|
|
||||||
// Use copy of keyboard mods at the time of the request, otherwise we would requires mods to be held for an extra frame.
|
// Use copy of keyboard mods at the time of the request, otherwise we would requires mods to be held for an extra frame.
|
||||||
ms->KeyMods = g.NavJustMovedToId ? g.NavJustMovedToKeyMods : g.IO.KeyMods;
|
ms->KeyMods = g.NavJustMovedToId ? (g.NavJustMovedToIsTabbing ? 0 : g.NavJustMovedToKeyMods) : g.IO.KeyMods;
|
||||||
if (flags & ImGuiMultiSelectFlags_NoRangeSelect)
|
if (flags & ImGuiMultiSelectFlags_NoRangeSelect)
|
||||||
ms->KeyMods &= ~ImGuiMod_Shift;
|
ms->KeyMods &= ~ImGuiMod_Shift;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user