on xenial help sign in
fix focus when invoked by right-edge push
commit27132877d5c770162caeb609fa978d346bf31e2b authorMichael Zanetti <michael.zanetti@canonical.com> dateThu 17 Sep 2015, 14:17 (11 years ago) parent34674e9
2 files changed+3−3
qml/Stages/DesktopSpread.qml+1−1 qml/Stages/DesktopStage.qml+2−2
qml/Stages/DesktopSpread.qml+1−1
@@ -12,8 +12,8 @@ FocusScope {
1212
1313 readonly property alias highlightedIndex: spreadRepeater.highlightedIndex
1414
15−
1615 Keys.onPressed: {
16+ print("key pressed", event.key)
1717 switch (event.key) {
1818 case Qt.Key_Left:
1919 case Qt.Key_Backtab:
qml/Stages/DesktopStage.qml+2−2
@@ -112,7 +112,7 @@ Rectangle {
112112 id: appContainer
113113 objectName: "appContainer"
114114 anchors.fill: parent
115− focus: !root.altTabPressed
115+ focus: spread.state !== "altTab"
116116
117117 CrossFadeImage {
118118 id: wallpaper
@@ -260,6 +260,6 @@ Rectangle {
260260 id: spread
261261 anchors.fill: parent
262262 workspace: appContainer
263− focus: root.altTabPressed
263+ focus: state == "altTab"
264264 }
265265}