Skip to content
@ng-doc/ui-kit / Class

NgDocHotkeyDirective

Emits when a key that matches the given keyboard event properties is released anywhere in the document, except while the reader types in a field.

Decorators
@Directive
Selectors
[ngDocHotkey]
DeclarationTypeScript
@Directive({ … })
export class NgDocHotkeyDirective { … }

Members

Constructor

1
()
—

Properties

2
callback: OutputEmitterRef<void>
readonly output()

Emits when the hotkey is released.

hotkey: InputSignal<Partial<KeyboardEvent> | undefined>
readonly input()

The keyboard event properties to match, for example the key and the modifier keys.

Example usage

<button [ngDocHotkey]="{ key: 'k', ctrlKey: true }" (ngDocHotkey)="open()">Open

Symbol
Kind
Class
Decorators
@Directive
Selectors
[ngDocHotkey]
Scope
@ng-doc/ui-kit
Edit this page