MultiSelect: Fix testing key mods from after the nav request (remove need to hold the mod longer)

This commit is contained in:
omar
2024-07-18 18:19:12 +02:00
committed by ocornut
parent 3ba3f0d905
commit 00c4b8f2a3
2 changed files with 11 additions and 6 deletions
+2
View File
@@ -2123,6 +2123,7 @@ struct ImGuiContext
bool MultiSelectEnabled;
ImGuiMultiSelectFlags MultiSelectFlags;
ImGuiMultiSelectState MultiSelectState; // We currently don't support recursing/stacking multi-select
ImGuiKeyChord MultiSelectKeyMods;
// Render
float DimBgRatio; // 0.0..1.0 animation when fading in a dimming background (for modal window and CTRL+TAB list)
@@ -2389,6 +2390,7 @@ struct ImGuiContext
MultiSelectEnabled = false;
MultiSelectFlags = ImGuiMultiSelectFlags_None;
MultiSelectKeyMods = ImGuiMod_None;
DimBgRatio = 0.0f;