There is any API to listen to keyboard events in background in Compose Desktop? example: for opening the window with a shortcut?
k
Kirill Grouchnikov
10/31/2021, 10:08 PM
I hope not for the sake of protecting your passwords
s
SrSouza
10/31/2021, 10:16 PM
I'm trying to do a spotlight application like for Linux.
r
rnett
10/31/2021, 11:46 PM
This is the only thing I've seen for that: https://github.com/kwhat/jnativehook You might be better off in the long run instruction users to set up a global shortcut themselves and reacting to that somehow, although I'm not sure how you would do that either (a short lived process that sends something to a socket maybe?)
s
SrSouza
11/01/2021, 1:06 AM
At the end, a better solution would be doing something using IPC for sure, but for testing, jnativehook will be enough for now, thanks :D