Learn more from guides & API docs
Catch up with the latest on the blog
Try our many live demos
View webinars
Find answers or ask questions
Docs & demos for Angular
Docs & demos for React
Docs & demos for Vue
Our blazing fast Grid component built with pure JavaScript
Post by henrique » Thu Oct 28, 2021 1:54 pm
I was reading the documentation and couldn't find a component for hotkeys.
My question is whether there is a component where I set up a key like F2, and every time i user presses that key, a function executed.
Is there such a thing?
Post by Animal » Thu Oct 28, 2021 2:38 pm
Yes, it's not documented for some reason, but a Widget can be configured like this:
keyMap : { 'F2' : 'onF2Keypress' }
And you implement onF2Keypress in your widget class
onF2Keypress