on xenial help sign in
Add properties to allow introspecting current focused app.
commitc468e0d76544310fae2b012d89cf28b55431bee7 authorChristopher Lee <chris.lee@canonical.com> dateThu 12 Sep 2013, 16:39 (13 years ago) parent9ce7f4e
2 files changed+4
Components/ApplicationManagerWrapper.qml+3 Shell.qml+1
Components/ApplicationManagerWrapper.qml+3
@@ -29,6 +29,9 @@ Item {
2929 property bool keyboardVisible: ApplicationManager.keyboardVisible
3030 property int keyboardHeight: ApplicationManager.keyboardHeight
3131
32+ // Used for autopilot testing.
33+ property string currentFocusedAppId: ApplicationManager.focusedApplicationId
34+
3235 property bool fake: ApplicationManager.fake ? ApplicationManager.fake : false
3336
3437 ApplicationsModelStageFiltered {
Shell.qml+1
@@ -75,6 +75,7 @@ FocusScope {
7575 applicationManager.unfocusCurrentApplication();
7676 }
7777
78+ readonly property string currentFocusedAppId: applicationManager.currentFocusedAppId
7879 readonly property bool applicationFocused: !!applicationManager.mainStageFocusedApplication
7980 || !!applicationManager.sideStageFocusedApplication
8081