MainScreen: Add right and middle click to auto close panels

This commit is contained in:
ItsLemmy
2025-11-07 17:37:58 -05:00
parent cece0dd8df
commit 6915f80c5b
+6 -5
View File
@@ -174,11 +174,12 @@ PanelWindow {
MouseArea {
anchors.fill: parent
enabled: root.isPanelOpen
onClicked: {
if (PanelService.openedPanel) {
PanelService.openedPanel.close()
}
}
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
onClicked: mouse => {
if (PanelService.openedPanel) {
PanelService.openedPanel.close()
}
}
z: 0 // Behind panels and bar
}