function injectHotkeyScopesState(): Signal<HotkeyScopesState>;Defined in: injectHotkeyScopesState.ts:28
Angular inject-based API that returns a signal of the hotkey manager's scope state: the active scopes, the exclusive scope that owns the keyboard, and the scopes it allows or suspends. Updates when scopes activate or release.
Signal<HotkeyScopesState>
Signal of the current scope state
@Component({
template: `
@if (scopes().exclusive; as exclusive) {
<p>Shortcuts belong to {{ exclusive }}</p>
}
`,
})
export class KeyboardOwnerComponent {
scopes = injectHotkeyScopesState()
}