Skip to content

Conversation

@ptxmac
Copy link
Contributor

@ptxmac ptxmac commented Apr 8, 2023

From imgui.h:

typedef int ImGuiKeyChord;          // -> ImGuiKey | ImGuiMod_XXX    // Flags: for storage only for now: an ImGuiKey optionally OR-ed with one or more ImGuiMod_XXX values.

This type is used by the (work in progress) Shortcut API.

It's a bit of a weird type... ImGuiKey | ImGuiMod_*, but ImGuiMod_* are already ImGuiKey and not a distinct type. Essentially it's an alias for the ImGuiKey, but with a different semantic meaning.

This PR adds a new simple wrapper for the type, but maybe it should just be a type alias for the existing Key?

@AllenDang AllenDang merged commit 826ab47 into AllenDang:main Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants