Skip to content

Commit

Permalink
Fixed ubports#351
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kugiigi authored Apr 19, 2021
1 parent 9ec9925 commit 92d81e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qml/Launcher/Launcher.qml
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ FocusScope {
drawer.focusInput();
}
if (state === "drawer" && !onlyOpen)
if (alsoToggleLauncher && !root.lockedVisible)
switchToNextState("");
if (alsoToggleLauncher)
hide();
else
switchToNextState("visible");
else
Expand Down

0 comments on commit 92d81e5

Please sign in to comment.