@@ -355,9 +355,11 @@ FocusScope {
355 text: i18n.tr("Power off")
355 text: i18n.tr("Power off")
356 onClicked: {
356 onClicked: {
357 dBusUnitySessionServiceConnection.closeAllApps();
357 dBusUnitySessionServiceConnection.closeAllApps();
358− DBusUnitySessionService.Shutdown();
359 PopupUtils.close(dialoguePower);
358 PopupUtils.close(dialoguePower);
360 stages.dialogShown = false;
359 stages.dialogShown = false;
360+ shutdownFadeOutRectangle.enabled = true;
361+ shutdownFadeOutRectangle.visible = true;
362+ shutdownFadeOut.start();
@@ -821,7 +823,7 @@ FocusScope {
823 Keys.onPressed: {
825 Keys.onPressed: {
824− if (event.key == Qt.Key_PowerOff || event.key == Qt.Key_PowerDown) {
826+ if (event.key == Qt.Key_PowerOff || event.key == Qt.Key_PowerDown || event.key == Qt.Key_A) {
825 if (!powerKeyTimer.running) {
827 if (!powerKeyTimer.running) {
826 powerKeyTimer.start();
828 powerKeyTimer.start();
@@ -846,4 +848,23 @@ FocusScope {
846 stages.showPowerDialog();
848 stages.showPowerDialog();
853+ id: shutdownFadeOutRectangle
857+ anchors.fill: parent
859+ NumberAnimation on opacity {
864+ if (shutdownFadeOutRectangle.enabled && shutdownFadeOutRectangle.visible) {
865+ DBusUnitySessionService.Shutdown();