[ui] Application: Added mouse area on menu bar area to allow forcing focus to the parent item when clicking

This commit is contained in:
waaake 2025-02-06 09:34:49 +05:30
parent 1931ce05ce
commit c1e28b07e9

View file

@ -927,6 +927,13 @@ Page {
}
Rectangle {
id: menuSpacer
MouseArea {
anchors.fill: parent
onClicked: {
menuSpacer.forceActiveFocus();
}
}
Layout.fillWidth: true
Layout.fillHeight: true
color: Qt.darker(activePalette.window, 1.15)
@ -973,6 +980,12 @@ Page {
}
Rectangle {
MouseArea {
anchors.fill: parent
onClicked: {
menuSpacer.forceActiveFocus();
}
}
Layout.fillWidth: true
Layout.fillHeight: true
color: Qt.darker(activePalette.window, 1.15)
@ -1007,6 +1020,7 @@ Page {
// Cache Folder
RowLayout {
spacing: 0
width: parent.width
MaterialToolButton {
font.pointSize: 8
text: MaterialIcons.folder_open
@ -1021,6 +1035,17 @@ Page {
color: Qt.darker(palette.text, 1.2)
background: Item {}
}
Item {
Layout.fillWidth: true
Layout.fillHeight: true
MouseArea {
anchors.fill: parent
onClicked: {
footer.forceActiveFocus();
}
}
}
}
}