We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved listeners using IOHook so can listen to meta key and others.
The text was updated successfully, but these errors were encountered:
Currently we have an issue installing global hotkeys in LaunchMenu.
Currently we used Electron's global hotkey libraries but these are very limited as they use more restricted hotkey binding systems.
Problems: IOHook only supports a set of node and electron versions. Building is a bit of a nightmare.
This implementation is described here. I've included some pseudocode below.
const WH_GETMESSAGE = 3 function Register(){ this.hook = SetWindowHookEx(WH_GETMESSAGE, pointerTo(MyMsgProc), 0, 0) } function Unregister(){ if(!UnhookWindowsHookEx(this.hook)){ throw "Cannot unhook" } } function MyMsgProc(code, wParam, lParam){ if(code == WM_KEYDOWN){ //Detect keycode in wParam //Propogation if(!stopPropogation){ CallNextHookEx(this.hook, code, wParam, lParam) } } else { CallNextHookEx(this.hook, code, wParam, lParam) } }
The following is the implementation for Macs written in swift.
see implementation of an event-tap in mac os here
The above could be implemented in Node-FFI. This could mean that we have a bit of a build nightmare though...
Windows Implementation
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Improved listeners using IOHook so can listen to meta key and others.
The text was updated successfully, but these errors were encountered: