keydown
fires when any key is pressed and a control of Toolbar is in focus
keydown: (event: KeyboardEvent, id?: string) => void;
Parameters:
event: KeyboardEvent
- a native KeyboardEvent objectid?: string
- the ID of the Toolbar control in focus
Example
toolbar.events.on("keydown", function(event, id) {
console.log("You've pressed the key: " + event.key);
});
Related sample: Toolbar. Events
Change log:
added in v8.3