mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 04:15:55 +02:00
Make ctrl+shift shortcuts work for create app
This commit is contained in:
parent
e890228fc7
commit
afd69d04dd
7 changed files with 14 additions and 3 deletions
|
@ -26,6 +26,8 @@ Item {
|
||||||
|
|
||||||
property bool interactive: false
|
property bool interactive: false
|
||||||
|
|
||||||
|
property bool blurOnCtrlShift: true
|
||||||
|
|
||||||
StylesUIt.HifiConstants {
|
StylesUIt.HifiConstants {
|
||||||
id: hifi
|
id: hifi
|
||||||
}
|
}
|
||||||
|
@ -180,8 +182,8 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
Keys.onPressed: {
|
Keys.onPressed: {
|
||||||
if ((event.modifiers & Qt.ShiftModifier) && (event.modifiers & Qt.ControlModifier)) {
|
if (blurOnCtrlShift && (event.modifiers & Qt.ShiftModifier) && (event.modifiers & Qt.ControlModifier)) {
|
||||||
webViewCore.focus = false;
|
webViewCore.focus = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,7 @@ Item {
|
||||||
property bool punctuationMode: false
|
property bool punctuationMode: false
|
||||||
property bool passwordField: false
|
property bool passwordField: false
|
||||||
property alias flickable: webroot.interactive
|
property alias flickable: webroot.interactive
|
||||||
|
property alias blurOnCtrlShift: webroot.blurOnCtrlShift
|
||||||
|
|
||||||
function stop() {
|
function stop() {
|
||||||
webroot.stop();
|
webroot.stop();
|
||||||
|
|
|
@ -10,6 +10,7 @@ import stylesUit 1.0
|
||||||
|
|
||||||
WebView {
|
WebView {
|
||||||
id: entityListToolWebView
|
id: entityListToolWebView
|
||||||
url: Paths.defaultScripts + "/system/html/entityList.html"
|
url: Paths.defaultScripts + "/system/html/entityListf.html"
|
||||||
enabled: true
|
enabled: true
|
||||||
|
blurOnCtrlShift: false
|
||||||
}
|
}
|
||||||
|
|
|
@ -245,6 +245,7 @@ TabBar {
|
||||||
id: entityListToolWebView
|
id: entityListToolWebView
|
||||||
url: Paths.defaultScripts + "/system/html/entityList.html"
|
url: Paths.defaultScripts + "/system/html/entityList.html"
|
||||||
enabled: true
|
enabled: true
|
||||||
|
blurOnCtrlShift: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -260,6 +261,7 @@ TabBar {
|
||||||
id: entityPropertiesWebView
|
id: entityPropertiesWebView
|
||||||
url: Paths.defaultScripts + "/system/html/entityProperties.html"
|
url: Paths.defaultScripts + "/system/html/entityProperties.html"
|
||||||
enabled: true
|
enabled: true
|
||||||
|
blurOnCtrlShift: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -275,6 +277,7 @@ TabBar {
|
||||||
id: gridControlsWebView
|
id: gridControlsWebView
|
||||||
url: Paths.defaultScripts + "/system/html/gridControls.html"
|
url: Paths.defaultScripts + "/system/html/gridControls.html"
|
||||||
enabled: true
|
enabled: true
|
||||||
|
blurOnCtrlShift: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -251,6 +251,7 @@ TabBar {
|
||||||
id: entityPropertiesWebView
|
id: entityPropertiesWebView
|
||||||
url: Paths.defaultScripts + "/system/html/entityProperties.html"
|
url: Paths.defaultScripts + "/system/html/entityProperties.html"
|
||||||
enabled: true
|
enabled: true
|
||||||
|
blurOnCtrlShift: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -266,6 +267,7 @@ TabBar {
|
||||||
id: gridControlsWebView
|
id: gridControlsWebView
|
||||||
url: Paths.defaultScripts + "/system/html/gridControls.html"
|
url: Paths.defaultScripts + "/system/html/gridControls.html"
|
||||||
enabled: true
|
enabled: true
|
||||||
|
blurOnCtrlShift: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,4 +2,5 @@ WebView {
|
||||||
id: entityListToolWebView
|
id: entityListToolWebView
|
||||||
url: Paths.defaultScripts + "/system/html/entityList.html"
|
url: Paths.defaultScripts + "/system/html/entityList.html"
|
||||||
enabled: true
|
enabled: true
|
||||||
|
blurOnCtrlShift: false
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,4 +8,5 @@ HifiControls.WebView {
|
||||||
id: entityListToolWebView
|
id: entityListToolWebView
|
||||||
url: Qt.resolvedUrl("../html/entityList.html")
|
url: Qt.resolvedUrl("../html/entityList.html")
|
||||||
enabled: true
|
enabled: true
|
||||||
|
blurOnCtrlShift: false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue