revery-ui / revery

:zap: Native, high-performance, cross-platform desktop apps - built with Reason!
https://www.outrunlabs.com/revery/
MIT License
8.06k stars 196 forks source link

Native: Global hotkey-events #973

Open lessp opened 4 years ago

lessp commented 4 years ago

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