diff --git a/meshroom/ui/qml/Application.qml b/meshroom/ui/qml/Application.qml index a27c1a5c6e..6b8960a01d 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(); + } + } + } } } diff --git a/meshroom/ui/qml/GraphEditor/NodeEditor.qml b/meshroom/ui/qml/GraphEditor/NodeEditor.qml index a208d22ee1..d6fb84fa95 100644 --- a/meshroom/ui/qml/GraphEditor/NodeEditor.qml +++ b/meshroom/ui/qml/GraphEditor/NodeEditor.qml @@ -255,6 +255,13 @@ Panel { id: placeholder_component Item { + id: panel + MouseArea { + anchors.fill: parent + onClicked: { + panel.forceActiveFocus(); + } + } Column { anchors.centerIn: parent MaterialLabel { diff --git a/meshroom/ui/qml/ImageGallery/ImageGallery.qml b/meshroom/ui/qml/ImageGallery/ImageGallery.qml index 5510b9bb36..d49e5060b6 100644 --- a/meshroom/ui/qml/ImageGallery/ImageGallery.qml +++ b/meshroom/ui/qml/ImageGallery/ImageGallery.qml @@ -830,8 +830,15 @@ Panel { } Item { + id: spacer Layout.fillHeight: true Layout.fillWidth: true + MouseArea { + anchors.fill: parent + onClicked: { + spacer.forceActiveFocus(); + } + } } MaterialToolLabelButton { diff --git a/meshroom/ui/qml/Viewer3D/Inspector3D.qml b/meshroom/ui/qml/Viewer3D/Inspector3D.qml index 43a08095c1..f9b841896e 100644 --- a/meshroom/ui/qml/Viewer3D/Inspector3D.qml +++ b/meshroom/ui/qml/Viewer3D/Inspector3D.qml @@ -355,6 +355,14 @@ FloatingPane { } } + MouseArea { + anchors.fill: parent + onClicked: { + /// Steal focus from anything that may have + mediaListView.forceActiveFocus(); + } + } + model: SortFilterDelegateModel { model: mediaLibrary.model sortRole: ""