From c1e28b07e9bac4491099b1852ad8150f5c4688a1 Mon Sep 17 00:00:00 2001 From: waaake Date: Thu, 6 Feb 2025 09:34:49 +0530 Subject: [PATCH] [ui] Application: Added mouse area on menu bar area to allow forcing focus to the parent item when clicking --- meshroom/ui/qml/Application.qml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/meshroom/ui/qml/Application.qml b/meshroom/ui/qml/Application.qml index a27c1a5c..6b8960a0 100644 --- a/meshroom/ui/qml/Application.qml +++ b/meshroom/ui/qml/Application.qml @@ -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(); + } + } + } } }