Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Commit

Permalink
qml: Unfocus launcher when dismissing Drawer
Browse files Browse the repository at this point in the history
Until now, when pressing the Super key on a keyboard, the
Launcher's focus state was still set to true, causing windows
not to receive input events.

Unfocus the Launcher in order to cause the Stage to re-evaluate
the new focus state, leading to windows receiving events again.
  • Loading branch information
fredldotme committed Oct 20, 2022
1 parent aed2ffe commit 6f25d25
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions qml/Launcher/Launcher.qml
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,14 @@ FocusScope {
onOpenRequested: {
root.toggleDrawer(false, true);
}

onFullyClosedChanged: {
if (!fullyClosed)
return

drawer.unFocusInput()
root.focus = false
}
}

LauncherPanel {
Expand Down

0 comments on commit 6f25d25

Please sign in to comment.