Get global key up and down events

Hi Vaadin community

is there any way to get global key up and key down events like in JavaScript with window.onkeyup/onkeydown?

Hi,

not out of the box on the server side. You could add a root element with specific shortcut actions, like explained in this
thread
, but it won’t work like in JavaScript where any key will trigger it. Depending on what you want, that might be enough; otherwise you’ll need to do some client-side coding.

-Olli