From 9f69e691c866f2b797796c8a2b1ce56ca6981cc1 Mon Sep 17 00:00:00 2001 From: Bharadwaj Raju Date: Tue, 12 Oct 2021 13:35:13 +0530 Subject: [PATCH] Make tab/right move focus to default action button or expand button --- .../plasmaextracomponents/qml/ExpandableListItem.qml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml b/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml index 629de7239..f131d74a8 100644 --- a/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml +++ b/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml @@ -372,6 +372,9 @@ Item { } } + KeyNavigation.tab: defaultActionButtonVisible ? defaultActionButton : expandToggleButton + KeyNavigation.right: defaultActionButtonVisible ? defaultActionButton : expandToggleButton + // Handle left clicks and taps; don't accept stylus input or else it steals // events from the buttons on the list item TapHandler { @@ -511,10 +514,14 @@ Item { visible: defaultActionButtonAction && listItem.defaultActionButtonVisible && (!busyIndicator.visible || listItem.showDefaultActionButtonWhenBusy) + + KeyNavigation.tab: expandToggleButton + KeyNavigation.right: expandToggleButton } // Expand/collapse button PlasmaComponents3.ToolButton { + id: expandToggleButton visible: listItem.hasExpandableContent icon.name: expandedView.active? "collapse" : "expand" -- GitLab