mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-22 03:47:00 +00:00
Shortcut(): fixed 8323a06
adding _Repeat to all Shortcut() calls.
This commit is contained in:
parent
3b828d3701
commit
d7c2a0e38f
@ -9432,7 +9432,7 @@ bool ImGui::Shortcut(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiInputFlags
|
|||||||
|
|
||||||
// Default repeat behavior for Shortcut()
|
// Default repeat behavior for Shortcut()
|
||||||
// So e.g. pressing Ctrl+W and releasing Ctrl while holding W will not trigger the W shortcut.
|
// So e.g. pressing Ctrl+W and releasing Ctrl while holding W will not trigger the W shortcut.
|
||||||
if ((flags & ImGuiInputFlags_RepeatUntilMask_) == 0)
|
if ((flags & ImGuiInputFlags_Repeat) != 0 && (flags & ImGuiInputFlags_RepeatUntilMask_) == 0)
|
||||||
flags |= ImGuiInputFlags_RepeatUntilKeyModsChange;
|
flags |= ImGuiInputFlags_RepeatUntilKeyModsChange;
|
||||||
|
|
||||||
if (!IsKeyChordPressed(key_chord, owner_id, flags))
|
if (!IsKeyChordPressed(key_chord, owner_id, flags))
|
||||||
|
Loading…
Reference in New Issue
Block a user