Created
February 2, 2016 02:00
-
-
Save jbasinger/6f09d502f813e3d7fb0b to your computer and use it in GitHub Desktop.
Can't register 'super+space' in Windows with Electron
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var app = require('app'); | |
| var globalShortcut = require('global-shortcut'); | |
| app.on('ready', function(){ | |
| var win_space = globalShortcut.register('super+space', function(){ | |
| console.log('This is rubbish!'); | |
| }); | |
| if(!win_space){ | |
| console.log('Why?!'); | |
| } | |
| globalShortcut.register('super+s', function(){ | |
| console.log('This works fine!'); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment