scripting: add setFocus(id)

This commit is contained in:
bordun 2021-03-01 10:41:55 +01:00
parent b5446c08ac
commit e9a829b323
4 changed files with 35 additions and 1 deletions

View file

@ -101,6 +101,7 @@ module.exports = function(options={}) {
window.webContents.on('console-message', (event, level, message)=>{
if (level === 0 && message === 'ELECTRON.BLUR()') window.blur()
if (level === 0 && message === 'ELECTRON.FOCUS()') window.focus()
})