Hi team
I’m trying to work on custom button click on the remote to show more information. Example: click on i will show more information
But it’s not particular element focus and onEnter event, so I not sure how I can achieve that.
Looking to this doc from Lightning, but still not quite understand it.
Thank you
Keypresses bubble up from the lowest focused component all the way to the app looking for a handler. So in your top level App component you can add:
// Catch all for key presses
_handleKeypress(event) {
// Figure out what key is being pressed
console.log(event)
}
Once you get the keycode you can then map it to a named handler via the directions listed above.
1 Like