Skip to content

Commit

Permalink
add the close query menu item for non-macOS (#71)
Browse files Browse the repository at this point in the history
* use CmdOrCtrl to support non-macOS platforms

* actually just add the menu item back in
  • Loading branch information
shiftkey authored and gjtorikian committed Jun 29, 2017
1 parent 065766c commit d544bc2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,12 @@ app.on('ready', function() {
click: function() {
mainWindow.webContents.send('handleElectronMenuOption', 'NEW_TAB');
}
}, {
label: 'Close Query',
accelerator: 'Ctrl+W',
click: function() {
mainWindow.webContents.send('handleElectronMenuOption', 'CLOSE_TAB');
}
}]
}, {
label: '&View',
Expand Down

0 comments on commit d544bc2

Please sign in to comment.