Add webContents.setIgnoreMenuShortcuts()

This allows you to disable application menu shortcut handling on a per
web contents basis.
This commit is contained in:
Birunthan Mohanathas 2017-06-25 12:01:05 -07:00
parent 3abeb6e2bc
commit f20f87829b
8 changed files with 60 additions and 18 deletions

View file

@ -582,6 +582,13 @@ describe('webContents module', function () {
})
})
describe('setIgnoreMenuShortcuts()', function () {
it('does not throw', function () {
assert.equal(w.webContents.setIgnoreMenuShortcuts(true))
assert.equal(w.webContents.setIgnoreMenuShortcuts(false))
})
})
describe('destroy()', () => {
let server