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
Constructor1 | |
() | — |
Signature | |
Properties2 | |
callback: | Emits when the hotkey is released. |
hotkey: | The keyboard event properties to match, for example the key and the modifier keys. |
No members match.
Example usage
<button [ngDocHotkey]="{ key: 'k', ctrlKey: true }" (ngDocHotkey)="open()">Open