KeyBinding

AppCUI::Input::KeyBinding (struct)

struct KeyBinding

A named, rebindable keyboard shortcut. Key is the current (effective) key, DefaultKey the built-in one.

Public Functions

inline constexpr KeyBinding(Input::Key key, const char *caption, const char *explanation, uint32 commandId, KeyBindingFlags flags = KeyBindingFlags::None)
inline constexpr bool Matches(Input::Key key) const
inline constexpr bool IsModified() const
inline constexpr bool HasFlag(KeyBindingFlags flag) const

Public Members

Input::Key Key
Input::Key DefaultKey
const char *Caption
const char *Explanation
uint32 CommandId
KeyBindingFlags Flags