mirror of
https://github.com/anomalyco/opencode.git
synced 2026-09-28 13:33:35 +08:00
fix(desktop): preserve keyboard focus during browser navigation (#48593)
This commit is contained in:
@@ -53,6 +53,8 @@ export function createBrowserPage(
|
||||
webviewTag: false,
|
||||
devTools: false,
|
||||
backgroundThrottling: false,
|
||||
// Agent navigation, including in hidden tabs, must not take the user's keyboard focus.
|
||||
focusOnNavigation: false,
|
||||
},
|
||||
})
|
||||
const contents = view.webContents
|
||||
@@ -157,6 +159,8 @@ export function createBrowserPage(
|
||||
webSecurity: true,
|
||||
webviewTag: false,
|
||||
devTools: false,
|
||||
// Electron applies these preferences before the popup is adopted by our view.
|
||||
focusOnNavigation: false,
|
||||
partition: options.partition,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user