r/JavaFX • u/Old_Assistance7 • 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
View all comments
1
u/SpittingBull Sep 30 '26
As an example you could start by adding an EventHandler with Scene.setOnKeyPress().