re-focus previously focused app after greeter
commitc8e34c7020481128f17f2e537aa78f7fc6a75b5c
authorMichael Zanetti <michael.zanetti@canonical.com>
dateThu 17 Jul 2014, 17:36 (12 years ago)
parente9c4dcb
qml/Stages/PhoneStage.qml+6
@@ -81,6 +81,12 @@ Item {
8181 spreadView.contentX = -spreadView.shift;
8282 }
8383 }
84+
85+ onSuspendedChanged: {
86+ if (root.interactive && !ApplicationManager.suspended && ApplicationManager.count > 0) {
87+ spreadRepeater.itemAt(0).forceActiveFocus();
88+ }
89+ }
8490 }
8591
8692 QtObject {
qml/Stages/TabletStage.qml+6
@@ -120,6 +120,12 @@ Item {
120120 spreadView.contentX = 0;
121121 }
122122 }
123+
124+ onSuspendedChanged: {
125+ if (root.interactive && !ApplicationManager.suspended && ApplicationManager.count > 0) {
126+ spreadRepeater.itemAt(0).forceActiveFocus();
127+ }
128+ }
123129 }
124130
125131 Flickable {