on xenial help sign in
fix focus when invoked by right-edge push
2713287Michael Zanetti
qml/Stages/DesktopSpread.qml+1−1
@@ -12,8 +12,8 @@ FocusScope {
12
12
13 readonly property alias highlightedIndex: spreadRepeater.highlightedIndex
13 readonly property alias highlightedIndex: spreadRepeater.highlightedIndex
14
14
15−
16 Keys.onPressed: {
15 Keys.onPressed: {
16+ print("key pressed", event.key)
17 switch (event.key) {
17 switch (event.key) {
18 case Qt.Key_Left:
18 case Qt.Key_Left:
19 case Qt.Key_Backtab:
19 case Qt.Key_Backtab:
qml/Stages/DesktopStage.qml+2−2
@@ -112,7 +112,7 @@ Rectangle {
112 id: appContainer
112 id: appContainer
113 objectName: "appContainer"
113 objectName: "appContainer"
114 anchors.fill: parent
114 anchors.fill: parent
115− focus: !root.altTabPressed
115+ focus: spread.state !== "altTab"
116
116
117 CrossFadeImage {
117 CrossFadeImage {
118 id: wallpaper
118 id: wallpaper
@@ -260,6 +260,6 @@ Rectangle {
260 id: spread
260 id: spread
261 anchors.fill: parent
261 anchors.fill: parent
262 workspace: appContainer
262 workspace: appContainer
263− focus: root.altTabPressed
263+ focus: state == "altTab"
264 }
264 }
265}
265}