KeymapSystem::KeyActionScope
KeymapSystem::KeyActionScope
Scope for a key action, determining when and where it can be dispatched. More…
#include <KeyAction.hpp>
Public Functions
| Name | |
|---|---|
| KeyActionScope | global() Create a Global scope (no target widget). |
| KeyActionScope | editorFocused(EditorLib::EditorTypeId const & type_id) Create an EditorFocused scope for the given editor type. |
| KeyActionScope | alwaysRouted(EditorLib::EditorTypeId const & type_id) Create an AlwaysRouted scope for the given editor type. |
| bool | operator==(KeyActionScope const & other) const =default |
Public Attributes
| Name | |
|---|---|
| KeyActionScopeKind | kind |
| EditorLib::EditorTypeId | editor_type_id |
Detailed Description
struct KeymapSystem::KeyActionScope;Scope for a key action, determining when and where it can be dispatched.
Combines a scope kind with an optional editor type identifier.
- Global: no editor_type_id needed
- EditorFocused: action only fires when this editor type has focus
- AlwaysRouted: action always fires, dispatched to this editor type
Public Functions Documentation
function global
static inline KeyActionScope global()Create a Global scope (no target widget).
function editorFocused
static inline KeyActionScope editorFocused(
EditorLib::EditorTypeId const & type_id
)Create an EditorFocused scope for the given editor type.
function alwaysRouted
static inline KeyActionScope alwaysRouted(
EditorLib::EditorTypeId const & type_id
)Create an AlwaysRouted scope for the given editor type.
function operator==
bool operator==(
KeyActionScope const & other
) const =defaultPublic Attributes Documentation
variable kind
KeyActionScopeKind kind = KeyActionScopeKind::Global;variable editor_type_id
EditorLib::EditorTypeId editor_type_id;Updated on 2026-11-13 at 20:25:42 +0000