Merge pull request #9852 from electron/webcontents-ignorekeyboardshortcuts

Add webContents.setIgnoreMenuShortcuts()
This commit is contained in:
Kevin Sawicki 2017-06-28 10:35:02 -07:00 committed by GitHub
commit 4958771b8a
8 changed files with 60 additions and 18 deletions

View file

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