Skip to content

Instantly share code, notes, and snippets.

@jbasinger
Created February 2, 2016 02:00
Show Gist options
  • Select an option

  • Save jbasinger/6f09d502f813e3d7fb0b to your computer and use it in GitHub Desktop.

Select an option

Save jbasinger/6f09d502f813e3d7fb0b to your computer and use it in GitHub Desktop.
Can't register 'super+space' in Windows with Electron
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