#Non global shortcuts

8 messages · Page 1 of 1 (latest)

balmy light
versed sable
#

Is there a reason not to use e.g.https://www.npmjs.com/package/hotkeys-js ?

balmy light
#

yeah... I don't really feel like that is clean either

versed sable
#

Define "clean"

#

how would you like this to work?

balmy light
#

Just registering them like the global ones with a tauri api, but them only working, while the app is active / in focus

balmy light
#

So as there doesn't seem to be a better way, how would I implement that?
Cause I get a whole bunch of errors, when I try to use app inside of the event handler

balmy light
#

nvm, got it working... missed the eventHandler on the app instead of the window