Enter member profile → focus power level control
This commit is contained in:
@@ -24,6 +24,7 @@ AutoDirectionLayout {
|
||||
|
||||
|
||||
rowSpacing: theme.spacing
|
||||
onActiveFocusChanged: if (activeFocus) field.forceActiveFocus()
|
||||
|
||||
HSpacer {}
|
||||
|
||||
|
@@ -208,9 +208,12 @@ HListView {
|
||||
defaultLevel: member.power_level
|
||||
maximumLevel: root.ownPowerLevel
|
||||
rowSpacing: powerLevel.spacing
|
||||
|
||||
onAccepted: applyButton.clicked()
|
||||
onFieldFocusedChanged:
|
||||
root.powerLevelFieldFocused = fieldFocused
|
||||
Component.onCompleted: forceActiveFocus()
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -96,12 +96,6 @@ HColumnLayout {
|
||||
|
||||
onActiveFocusChanged: {
|
||||
if (
|
||||
activeFocus &&
|
||||
stackView.depth === 1 &&
|
||||
stackView.currentItem.currentIndex === -1
|
||||
) {
|
||||
stackView.currentItem.currentIndex = 0
|
||||
} else if (
|
||||
! activeFocus &&
|
||||
stackView.depth === 1 &&
|
||||
stackView.currentItem.currentIndex === 0
|
||||
|
Reference in New Issue
Block a user