scripting: add setFocus(id)
This commit is contained in:
parent
b5446c08ac
commit
e9a829b323
4 changed files with 35 additions and 1 deletions
|
|
@ -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()
|
||||
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue