Shortcuts: added flags to SetNextItemShortcut(). (#456)

This commit is contained in:
ocornut
2024-05-23 16:57:19 +02:00
parent 197f8904fe
commit 77e4171894
3 changed files with 18 additions and 12 deletions
+1 -1
View File
@@ -955,7 +955,7 @@ namespace ImGui
// - Shortcut() submits a route, routes are resolved, if it currently can be routed it calls IsKeyChordPressed() -> function has (desirable) side-effects as it can prevents another call from getting the route.
// - Visualize registered routes in 'Metrics/Debugger->Inputs'.
IMGUI_API bool Shortcut(ImGuiKeyChord key_chord, ImGuiInputFlags flags = 0);
IMGUI_API void SetNextItemShortcut(ImGuiKeyChord key_chord);
IMGUI_API void SetNextItemShortcut(ImGuiKeyChord key_chord, ImGuiInputFlags flags = 0);
// Inputs Utilities: Mouse specific
// - To refer to a mouse button, you may use named enums in your code e.g. ImGuiMouseButton_Left, ImGuiMouseButton_Right.