Make ctrl+shift shortcuts work for create app

This commit is contained in:
Thijs Wenker 2018-11-03 00:27:03 +01:00
parent e890228fc7
commit afd69d04dd
7 changed files with 14 additions and 3 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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