@@ -50,8 +50,8 @@ AbstractStage {
50 GlobalShortcut {
50 GlobalShortcut {
51 id: closeWindowShortcut
51 id: closeWindowShortcut
52 shortcut: Qt.AltModifier|Qt.Key_F4
52 shortcut: Qt.AltModifier|Qt.Key_F4
53− onTriggered: { if (priv.focusedAppDelegate) { priv.focusedAppDelegate.close(); } }
53+ onTriggered: priv.focusedAppDelegate.close();
54− active: priv.focusedAppDelegate !== null
54+ active: priv.focusedAppDelegate && !priv.focusedAppDelegate.isDash
57 GlobalShortcut {
57 GlobalShortcut {
@@ -298,6 +298,8 @@ AbstractStage {
299 readonly property var surface: model.surface
299 readonly property var surface: model.surface
301+ readonly property bool isDash: model.application.appId == "unity8-dash"
301 function claimFocus() {
303 function claimFocus() {
302 if (spread.state == "altTab") {
304 if (spread.state == "altTab") {
303 spread.cancel();
305 spread.cancel();