test: make before-input-event test more robust
This commit is contained in:
parent
41d806ee45
commit
b11b4f2235
2 changed files with 7 additions and 7 deletions
|
@ -212,6 +212,7 @@ app.on('ready', function () {
|
|||
webContents.fromId(id).once('before-input-event', (event, input) => {
|
||||
if (key === input.key) event.preventDefault()
|
||||
})
|
||||
event.returnValue = null
|
||||
})
|
||||
|
||||
ipcMain.on('executeJavaScript', function (event, code, hasCallback) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue