From b6b02ee6a7ed67b096ff709a036ccaca0e2e5ed7 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 10 Jul 2020 14:15:47 -0400 Subject: [PATCH] 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 --- src/gui/MainPane/AccountContextMenu.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/MainPane/AccountContextMenu.qml b/src/gui/MainPane/AccountContextMenu.qml index 720ee5e1..bb6755ec 100644 --- a/src/gui/MainPane/AccountContextMenu.qml +++ b/src/gui/MainPane/AccountContextMenu.qml @@ -13,7 +13,7 @@ HMenu { property string presence property string statusMsg - + signal wentToAccountPage() @@ -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 {