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