Fix up/down key handling for account context menu
- Press down while focusing status field or apply icon: focus the online menu item - Press up while focusing online menu item: focus status field
This commit is contained in:
parent
8557c79e12
commit
b6b02ee6a7
|
@ -33,6 +33,8 @@ HMenu {
|
|||
label.text: qsTr("Status message:")
|
||||
label.horizontalAlignment: Qt.AlignHCenter
|
||||
|
||||
Keys.onDownPressed: onlineButton.forceActiveFocus()
|
||||
|
||||
HRowLayout {
|
||||
width: parent.width
|
||||
|
||||
|
@ -70,10 +72,13 @@ HMenu {
|
|||
HMenuSeparator { }
|
||||
|
||||
HMenuItem {
|
||||
id: onlineButton
|
||||
icon.name: "presence-online"
|
||||
icon.color: theme.controls.presence.online
|
||||
text: qsTr("Online")
|
||||
onTriggered: setPresence("online")
|
||||
|
||||
Keys.onUpPressed: statusText.forceActiveFocus()
|
||||
}
|
||||
|
||||
HMenuItem {
|
||||
|
|
Loading…
Reference in New Issue
Block a user