@@ -35,6 +35,7 @@ FocusScope {
3535 property real progress: dragArea.dragging && dragArea.touchX > panelWidth ?
3636 (width * (dragArea.touchX-panelWidth) / (width - panelWidth)) : 0
3737
38+ property bool superPressed: false
3839 property bool superTabPressed: false
3940
4041 readonly property bool dragging: dragArea.dragging
@@ -60,11 +61,25 @@ FocusScope {
6061 }
6162 }
6263
64+ onSuperPressedChanged: {
65+ if (superPressed) {
66+ superPressTimer.start();
67+ superLongPressTimer.start();
68+ } else {
69+ superPressTimer.stop();
70+ superLongPressTimer.stop();
71+ launcher.switchToNextState("");
72+ panel.shortcutHintsShown = false;
73+ }
74+ }
75+
6376 onSuperTabPressedChanged: {
6477 if (superTabPressed) {
6578 switchToNextState("visible")
6679 panel.highlightIndex = -1;
6780 root.focus = true;
81+ superPressTimer.stop();
82+ superLongPressTimer.stop();
6883 } else {
6984 if (panel.highlightIndex == -1) {
7085 showDashHome();
@@ -158,6 +173,23 @@ FocusScope {
158173 }
159174 }
160175
176+ Timer {
177+ id: superPressTimer
178+ interval: 200
179+ onTriggered: {
180+ switchToNextState("visible")
181+ }
182+ }
183+
184+ Timer {
185+ id: superLongPressTimer
186+ interval: 1000
187+ onTriggered: {
188+ switchToNextState("visible")
189+ panel.shortcutHintsShown = true;
190+ }
191+ }
192+
161193 Timer {
162194 id: teaseTimer
163195 interval: mode == "teasing" ? 200 : 300