@hcfy/uiohook-shortcut
v0.0.4
Published
A Electron's globalShortcut replacement based on uiohook-napi.
Downloads
10
Maintainers
Readme
UIOHook Shortcut
A Electron's globalShortcut replacement based on uiohook-napi.
Why?
Because Electron's globalShortcut disables the default behavior.
How to use
First, install it:
npm i @hcfy/uiohook-shoutcut
Then replace Electron's gobalShortcut
to @hcfy/uiohook-shoutcut
:
import { globalShortcut } from 'electron'
// replace to
import * as globalShortcut from '@hcfy/uiohook-shoutcut'
Done.