KeyBindingProps struct
#include <GGUI/Public/UIActions.h>
Properties of ui.KeyBinding, which shows an action's chord and rebinds it.
Click, then press the new chord. It has no keys of its own, so any key can be bound; Cancel, Clear (unbind) and Reset (default) are buttons.
Public variables
- bool bShowConflicts
- If the chord is already bound to a conflicting action, show the conflict and require the chord to be pressed again; confirming unbinds the other action.
- GGSize Width
- its width
- bool bDisabled
- shown disabled; can't be rebound
- std::string_view Class
- :checked while waiting; parts: "keybinding-text", "keybinding-conflict", "keybinding-button"
Variable documentation
bool GGUI:: KeyBindingProps:: bShowConflicts
If the chord is already bound to a conflicting action, show the conflict and require the chord to be pressed again; confirming unbinds the other action.
False: bind immediately and leave both bound (the command nearest the focus wins).