Defined in: controllers/hotkey-registrations.ts:35
A Lit ReactiveController that tracks all hotkey and sequence registrations.
Subscribes to the singleton HotkeyManager and SequenceManager stores and triggers host updates whenever registrations change.
class ShortcutPalette extends LitElement {
private registrations = new HotkeyRegistrationsController(this)
render() {
return html`
<ul>
${this.registrations.hotkeys.map(
(reg) => html`<li>${reg.options.meta?.name ?? reg.hotkey}</li>`,
)}
</ul>
`
}
}class ShortcutPalette extends LitElement {
private registrations = new HotkeyRegistrationsController(this)
render() {
return html`
<ul>
${this.registrations.hotkeys.map(
(reg) => html`<li>${reg.options.meta?.name ?? reg.hotkey}</li>`,
)}
</ul>
`
}
}new HotkeyRegistrationsController(_host): HotkeyRegistrationsController;new HotkeyRegistrationsController(_host): HotkeyRegistrationsController;Defined in: controllers/hotkey-registrations.ts:51
ReactiveControllerHost
HotkeyRegistrationsController
get hotkeys(): HotkeyRegistrationView[];get hotkeys(): HotkeyRegistrationView[];Defined in: controllers/hotkey-registrations.ts:42
All registered hotkeys (public view, no callbacks).
HotkeyRegistrationView[]
get sequences(): SequenceRegistrationView[];get sequences(): SequenceRegistrationView[];Defined in: controllers/hotkey-registrations.ts:47
All registered sequences.
SequenceRegistrationView[]
hostConnected(): void;hostConnected(): void;Defined in: controllers/hotkey-registrations.ts:55
Called when the host is connected to the component tree. For custom element hosts, this corresponds to the connectedCallback() lifecycle, which is only called when the component is connected to the document.
void
ReactiveController.hostConnectedReactiveController.hostConnectedhostDisconnected(): void;hostDisconnected(): void;Defined in: controllers/hotkey-registrations.ts:81
Called when the host is disconnected from the component tree. For custom element hosts, this corresponds to the disconnectedCallback() lifecycle, which is called the host or an ancestor component is disconnected from the document.
void
ReactiveController.hostDisconnectedReactiveController.hostDisconnected