diff --git a/src/gui/qml/AccountBar.qml b/src/gui/qml/AccountBar.qml index 29f62bdb5a..4f158b74ad 100644 --- a/src/gui/qml/AccountBar.qml +++ b/src/gui/qml/AccountBar.qml @@ -79,6 +79,9 @@ Pane { ToolTip.delay: 500 Accessible.name: accountState.account.displayNameWithHost + Accessible.onPressAction: { + clicked(); + } Connections { target: accountState.account diff --git a/src/gui/spaces/qml/SpacesView.qml b/src/gui/spaces/qml/SpacesView.qml index 77981f63f0..16e7a7672d 100644 --- a/src/gui/spaces/qml/SpacesView.qml +++ b/src/gui/spaces/qml/SpacesView.qml @@ -93,6 +93,10 @@ Pane { width: scrollView.availableWidth implicitHeight: normalSize + function selectSpace() { + spaceDelegate.ListView.view.currentIndex = spaceDelegate.index; + } + Pane { id: delegatePane @@ -102,6 +106,9 @@ Pane { Accessible.role: Accessible.ListItem Accessible.selectable: true Accessible.selected: space === spacesBrowser.currentSpace + Accessible.onPressAction: { + spaceDelegate.selectSpace(); + } clip: true @@ -132,7 +139,7 @@ Pane { MouseArea { anchors.fill: parent onClicked: { - spaceDelegate.ListView.view.currentIndex = spaceDelegate.index; + spaceDelegate.selectSpace(); } } }