r/JavaFX • • Sep 30 '26

Help Global keyboard events

Hello everyone, I'm new to Desktop development! And I want to know techniques/ways on how to handle global keyboard events! for example, cmd+shift+a to open a window etc.

Thanks :)

8 Upvotes

3 comments sorted by

View all comments

1

u/SpittingBull Sep 30 '26

As an example you could start by adding an EventHandler with Scene.setOnKeyPress().