test: make before-input-event test more robust

This commit is contained in:
Cheng Zhao 2018-10-02 15:04:36 +09:00 committed by Aleksei Kuzmin
parent 41d806ee45
commit b11b4f2235
2 changed files with 7 additions and 7 deletions

View file

@ -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) {