function injectHotkeyRegistrations(): Signal<HotkeyRegistrationView[]>;Defined in: injectHotkeyRegistrations.ts:29
Angular inject-based API that reactively reads every hotkey registration, chords and sequences, from the singleton HotkeyManager. Narrow each view with kind.
This does NOT require provideHotkeys.
Signal<HotkeyRegistrationView[]>
A signal of all registrations, without callbacks
@Component({
template: `
@for (reg of registrations(); track reg.id) {
<li>{{ reg.options.meta?.name }}</li>
}
`,
})
export class ShortcutPalette {
registrations = injectHotkeyRegistrations()
}