Enter member profile → focus power level control
This commit is contained in:
parent
bcf93a6f36
commit
42791f32d3
1
TODO.md
1
TODO.md
|
@ -1,7 +1,6 @@
|
|||
# TODO
|
||||
|
||||
- global presence control
|
||||
- power level control keyboard focus
|
||||
- idlemanager: what if setPresence call fails due to network?
|
||||
- fix power level control button layout when apply button is loading
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user