@@ -20,7 +20,6 @@ import Ubuntu.Gestures 0.1
2020import Unity.Application 0.1
2121import Unity.Session 0.1
2222import Utils 0.1
23−import GlobalShortcut 1.0
2423import Powerd 0.1
2524import "../Components"
2625
@@ -109,6 +108,12 @@ AbstractStage {
109108 }
110109 }
111110
111+ function closeFocusedDelegate() {
112+ if (priv.focusedAppDelegate && !priv.focusedAppDelegate.isDash) {
113+ priv.focusedAppDelegate.closed();
114+ }
115+ }
116+
112117 mainApp: priv.focusedAppDelegate ? priv.focusedAppDelegate.application : null
113118
114119 orientationChangesEnabled: priv.focusedAppOrientationChangesEnabled
@@ -127,12 +132,6 @@ AbstractStage {
127132
128133 signal opened()
129134
130− GlobalShortcut {
131− shortcut: Qt.AltModifier|Qt.Key_F4
132− onTriggered: priv.focusedAppDelegate.closed()
133− active: priv.focusedAppDelegate && !priv.focusedAppDelegate.isDash
134− }
135−
136135 function select(appId) {
137136 spreadView.snapTo(priv.indexOf(appId));
138137 }