From 92d81e5dfeaffa942ae6d7b99d99d6ed4babf8a8 Mon Sep 17 00:00:00 2001 From: Kugi Eusebio Date: Mon, 19 Apr 2021 23:58:15 +0800 Subject: [PATCH] Fixed #351 Properly close the drawer when pressing `Super` so that correct apps gets the focus again. I think it also makes it `Super` key for opening the drawer more reliable. Prior to this, sometimes it won't react correctly. --- qml/Launcher/Launcher.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qml/Launcher/Launcher.qml b/qml/Launcher/Launcher.qml index d81d35411c..093181f08e 100644 --- a/qml/Launcher/Launcher.qml +++ b/qml/Launcher/Launcher.qml @@ -197,8 +197,8 @@ FocusScope { drawer.focusInput(); } if (state === "drawer" && !onlyOpen) - if (alsoToggleLauncher && !root.lockedVisible) - switchToNextState(""); + if (alsoToggleLauncher) + hide(); else switchToNextState("visible"); else