mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 03:53:34 +02:00
Fix keyboard in new browser window opened from Web view
This commit is contained in:
parent
2343e02454
commit
64c54f9c6b
2 changed files with 3 additions and 5 deletions
|
@ -25,8 +25,6 @@ WebEngineView {
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
// FIXME hack to get the URL with the auth token included. Remove when we move to Qt 5.6
|
||||
Timer {
|
||||
id: urlReplacementTimer
|
||||
|
|
|
@ -13,8 +13,8 @@ import "."
|
|||
|
||||
BaseWebView {
|
||||
onNewViewRequested: {
|
||||
var component = Qt.createComponent("../Browser.qml");
|
||||
var newWindow = component.createObject(desktop);
|
||||
request.openIn(newWindow.webView)
|
||||
// Load dialog via OffscreenUi so that JavaScript EventBridge is available.
|
||||
var browser = OffscreenUi.load("Browser.qml");
|
||||
request.openIn(browser.webView);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue