Fix keyboard in new browser window opened from Web view

This commit is contained in:
David Rowe 2016-10-14 10:03:52 +13:00
parent 2343e02454
commit 64c54f9c6b
2 changed files with 3 additions and 5 deletions

View file

@ -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

View file

@ -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);
}
}