mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 21:36:12 +02:00
Moving between form fields with arrow keys makes it to easy to make unintended changes to adjacent fields.
53 lines
1.3 KiB
QML
53 lines
1.3 KiB
QML
import QtQuick 2.5
|
|
import QtQuick.Controls 1.4
|
|
import QtWebEngine 1.1;
|
|
|
|
import "../desktop"
|
|
import ".."
|
|
|
|
Desktop {
|
|
id: desktop
|
|
|
|
MouseArea {
|
|
anchors.fill: parent
|
|
hoverEnabled: true
|
|
propagateComposedEvents: true
|
|
scrollGestureEnabled: false // we don't need/want these
|
|
onEntered: ApplicationCompositor.reticleOverDesktop = true
|
|
onExited: ApplicationCompositor.reticleOverDesktop = false
|
|
acceptedButtons: Qt.NoButton
|
|
}
|
|
|
|
Component.onCompleted: {
|
|
WebEngine.settings.javascriptCanOpenWindows = true;
|
|
WebEngine.settings.javascriptCanAccessClipboard = false;
|
|
WebEngine.settings.spatialNavigationEnabled = false;
|
|
WebEngine.settings.localContentCanAccessRemoteUrls = true;
|
|
}
|
|
|
|
// The tool window, one instance
|
|
property alias toolWindow: toolWindow
|
|
ToolWindow { id: toolWindow }
|
|
|
|
property var browserProfile: WebEngineProfile {
|
|
id: webviewProfile
|
|
httpUserAgent: "Chrome/48.0 (HighFidelityInterface)"
|
|
storageName: "qmlWebEngine"
|
|
}
|
|
|
|
Action {
|
|
text: "Open Browser"
|
|
shortcut: "Ctrl+B"
|
|
onTriggered: {
|
|
console.log("Open browser");
|
|
browserBuilder.createObject(desktop);
|
|
}
|
|
property var browserBuilder: Component {
|
|
Browser{}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|