diff --git a/desktoppackage/contents/applet/CompactApplet.qml b/desktoppackage/contents/applet/CompactApplet.qml --- a/desktoppackage/contents/applet/CompactApplet.qml +++ b/desktoppackage/contents/applet/CompactApplet.qml @@ -128,7 +128,7 @@ } } } - + Timer { id: expandedSync interval: 100 @@ -160,6 +160,12 @@ mainItem: MouseEventListener { id: appletParent + focus: true + + Keys.onEscapePressed: { + plasmoid.expanded = false; + } + LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft LayoutMirroring.childrenInherit: true