builtin client:change noFocus client option behavior: the defalt client window now doesn't take the focus at all, even when a text input is clicked.
This commit is contained in:
parent
dca6d2c889
commit
74f6c289e5
8 changed files with 48 additions and 4 deletions
|
|
@ -62,7 +62,13 @@ function openClient() {
|
|||
var address = settings.appAddresses()[0]
|
||||
|
||||
var launch = ()=>{
|
||||
var win = require('./electron-window')({address:address, shortcuts:true, fullscreen: settings.read('fullscreen'), id: 'client'})
|
||||
var win = require('./electron-window')({
|
||||
address:address,
|
||||
shortcuts:true,
|
||||
fullscreen: settings.read('fullscreen'),
|
||||
noFocus: settings.read('client-options') && settings.read('client-options').some(x=>x.match(/nofocus=1/i)),
|
||||
id: 'client'
|
||||
})
|
||||
win.on('error', ()=>{
|
||||
console.log('ERR')
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue