@@ -183,7 +183,7 @@ FocusScope {
183 switchToNextState("visible")
183 switchToNextState("visible")
186− function toggleDrawer(focusInputField, onlyOpen) {
186+ function toggleDrawer(focusInputField, onlyOpen, alsoToggleLauncher) {
187 if (!drawerEnabled) {
187 if (!drawerEnabled) {
@@ -196,11 +196,13 @@ FocusScope {
196 if (focusInputField) {
196 if (focusInputField) {
197 drawer.focusInput();
197 drawer.focusInput();
199− if (state === "drawer" && !onlyOpen) {
199+ if (state === "drawer" && !onlyOpen)
200+ if (alsoToggleLauncher && !root.lockedVisible)
201+ switchToNextState("");
200− switchToNextState("visible");
203+ switchToNextState("visible");
202 switchToNextState("drawer");
205 switchToNextState("drawer");
206 Keys.onPressed: {
208 Keys.onPressed: {