KeymapSystem::KeyActionDescriptor
KeymapSystem::KeyActionDescriptor
Metadata describing a bindable keyboard action. More…
#include <KeyAction.hpp>
Public Attributes
| Name | |
|---|---|
| QString | action_id Unique, dot-namespaced ID (e.g. “media.assign_group_1”). |
| QString | display_name Human-readable name (e.g. “Assign to Group 1”). |
| QString | category Grouping for the keybinding editor (e.g. “Media Viewer”). |
| KeyActionScope | scope When this action is eligible for dispatch. |
| QKeySequence | default_binding |
| std::optional< commands::CommandSequenceDescriptor > | command_sequence When set, key dispatch runs [commands::executeSequence()]() instead of adapters. |
Detailed Description
struct KeymapSystem::KeyActionDescriptor;Metadata describing a bindable keyboard action.
Pure data — no callback stored. Registered with KeymapManager during widget type setup. The actual handler is installed via KeyActionAdapter at widget construction time.
Public Attributes Documentation
variable action_id
QString action_id;Unique, dot-namespaced ID (e.g. “media.assign_group_1”).
variable display_name
QString display_name;Human-readable name (e.g. “Assign to Group 1”).
variable category
QString category;Grouping for the keybinding editor (e.g. “Media Viewer”).
variable scope
KeyActionScope scope;When this action is eligible for dispatch.
variable default_binding
QKeySequence default_binding;Shipped default key (may be empty = unbound)
variable command_sequence
std::optional< commands::CommandSequenceDescriptor > command_sequence;When set, key dispatch runs [commands::executeSequence()]() instead of adapters.
Updated on 2026-11-13 at 20:25:42 +0000