1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-30 00:12:50 -05:00

fix: System Updater focus

This commit is contained in:
purian23
2025-10-18 19:33:54 -04:00
parent 9b4b2f75c1
commit 8719dcf98f

View File

@@ -251,12 +251,17 @@ Item {
} }
} }
Column { FocusScope {
width: parent.width - Theme.spacingM * 2 width: parent.width - Theme.spacingM * 2
spacing: Theme.spacingXS height: customCommandColumn.implicitHeight
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: Theme.spacingM anchors.leftMargin: Theme.spacingM
Column {
id: customCommandColumn
width: parent.width
spacing: Theme.spacingXS
StyledText { StyledText {
text: I18n.tr("System update custom command") text: I18n.tr("System update custom command")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
@@ -281,15 +286,29 @@ Item {
onTextEdited: { onTextEdited: {
SettingsData.setUpdaterCustomCommand(text.trim()); SettingsData.setUpdaterCustomCommand(text.trim());
} }
MouseArea {
anchors.fill: parent
onPressed: mouse => {
updaterCustomCommand.forceActiveFocus()
mouse.accepted = false
}
}
}
} }
} }
Column { FocusScope {
width: parent.width - Theme.spacingM * 2 width: parent.width - Theme.spacingM * 2
spacing: Theme.spacingXS height: terminalParamsColumn.implicitHeight
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: Theme.spacingM anchors.leftMargin: Theme.spacingM
Column {
id: terminalParamsColumn
width: parent.width
spacing: Theme.spacingXS
StyledText { StyledText {
text: I18n.tr("Terminal custom additional parameters") text: I18n.tr("Terminal custom additional parameters")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
@@ -314,6 +333,15 @@ Item {
onTextEdited: { onTextEdited: {
SettingsData.setUpdaterTerminalAdditionalParams(text.trim()); SettingsData.setUpdaterTerminalAdditionalParams(text.trim());
} }
MouseArea {
anchors.fill: parent
onPressed: mouse => {
updaterTerminalCustomClass.forceActiveFocus()
mouse.accepted = false
}
}
}
} }
} }
} }