From 5d42662e88b950b69ca49f0ad79e813b8b0ecd23 Mon Sep 17 00:00:00 2001
From: tanyulong <tanyulong@kylinos.cn>
Date: Tue, 7 Dec 2021 15:34:59 +0800
Subject: [PATCH] ukui-session/sessionapplication.cpp

---
 ukui-session/sessionapplication.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ukui-session/sessionapplication.cpp b/ukui-session/sessionapplication.cpp
index 5f6243c..1688c40 100755
--- a/ukui-session/sessionapplication.cpp
+++ b/ukui-session/sessionapplication.cpp
@@ -56,6 +56,11 @@ void SessionApplication::InitialEnvironment()
 	    gs->set("canhibernate",false);
     }
 
+    //在打开关机管理界面后通过物理按键的方式关机/重启
+    //将导致win-key-release键值为true
+    //造成大部分热键和组合键失效
+    //所以在登录进来时恢复默认值
+    //gs->reset("win-key-release");
     //检查qt主题是否安装
     const QByteArray qt_style(QT5_UKUI_STYLE);
     QByteArray QT_QPA_PLATFORMTHEME;
-- 
2.30.0

