mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
test: make before-input-event test more robust
This commit is contained in:
committed by
Aleksei Kuzmin
parent
41d806ee45
commit
b11b4f2235
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user