@@ -104,11 +104,6 @@ FocusScope {
104104 function pushRightEdge(amount) {
105105 edgeBarrier.push(amount);
106106 }
107− function closeFocusedDelegate() {
108− if (priv.focusedAppDelegate && !priv.focusedAppDelegate.isDash) {
109− priv.focusedAppDelegate.close();
110− }
111− }
112107
113108 onSpreadEnabledChanged: {
114109 if (!spreadEnabled && root.state == "spread") {
@@ -134,7 +129,11 @@ FocusScope {
134129 GlobalShortcut {
135130 id: closeFocusedShortcut
136131 shortcut: Qt.AltModifier|Qt.Key_F4
137− onTriggered: closeFocusedDelegate()
132+ onTriggered: {
133+ if (priv.focusedAppDelegate && !priv.focusedAppDelegate.isDash) {
134+ priv.focusedAppDelegate.close();
135+ }
136+ }
138137 }
139138
140139 GlobalShortcut {