projects/ng-keyboard-shortcuts/src/lib/ng-keyboard-shortcuts.interfaces.ts
The shortcut input for the Directive
Properties |
|
Methods |
command | ||||||||
command(event: ShortcutEventOutput)
|
||||||||
callback to be called when shortcut is pressed.
Parameters :
Returns :
any
|
description |
description:
|
Type : string
|
Optional |
Description for the command can be used for rendering help menu. |
key |
key:
|
Type : string | string[]
|
A key or list of keys to listen to and fire the command. |
label |
label:
|
Type : string
|
Optional |
Label, can be used for grouping commands. |
preventDefault |
preventDefault:
|
Type : boolean
|
Optional |
Prevent browser default, default: false |
throttleTime |
throttleTime:
|
Type : number
|
Optional |
How much time to throttle in ms. |