Merge pull request #9852 from electron/webcontents-ignorekeyboardshortcuts
Add webContents.setIgnoreMenuShortcuts()
This commit is contained in:
commit
4958771b8a
8 changed files with 60 additions and 18 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue