revery-ui/revery

Native: Global hotkey-events

lessp opened this issue · 0 comments

lessp commented

At least on macOS it's possible to register global hotkey-events:

https://snippets.aktagon.com/snippets/361-registering-global-hot-keys-with-cocoa-and-objective-c

A common use-case is to show the app once such a key-event has been pressed.

E.g. in Electron:
https://www.electronjs.org/docs/api/global-shortcut