@@ -20,7 +20,6 @@ import Ubuntu.Gestures 0.1
20import Unity.Application 0.1
20import Unity.Application 0.1
21import Unity.Session 0.1
21import Unity.Session 0.1
22import Utils 0.1
22import Utils 0.1
23−import GlobalShortcut 1.0
24import Powerd 0.1
23import Powerd 0.1
25import "../Components"
24import "../Components"
@@ -109,6 +108,12 @@ AbstractStage {
111+ function closeFocusedDelegate() {
112+ if (priv.focusedAppDelegate && !priv.focusedAppDelegate.isDash) {
113+ priv.focusedAppDelegate.closed();
112 mainApp: priv.focusedAppDelegate ? priv.focusedAppDelegate.application : null
117 mainApp: priv.focusedAppDelegate ? priv.focusedAppDelegate.application : null
114 orientationChangesEnabled: priv.focusedAppOrientationChangesEnabled
119 orientationChangesEnabled: priv.focusedAppOrientationChangesEnabled
@@ -127,12 +132,6 @@ AbstractStage {
128 signal opened()
133 signal opened()
131− shortcut: Qt.AltModifier|Qt.Key_F4
132− onTriggered: priv.focusedAppDelegate.closed()
133− active: priv.focusedAppDelegate && !priv.focusedAppDelegate.isDash
136 function select(appId) {
135 function select(appId) {
137 spreadView.snapTo(priv.indexOf(appId));
136 spreadView.snapTo(priv.indexOf(appId));