diff --git a/extension/recent-file/qml/RecentFileExtension.qml b/extension/recent-file/qml/RecentFileExtension.qml index 023cbd3..32a0251 100644 --- a/extension/recent-file/qml/RecentFileExtension.qml +++ b/extension/recent-file/qml/RecentFileExtension.qml @@ -35,7 +35,6 @@ UkuiMenuExtension { anchors.fill: parent hoverEnabled: true onContainsMouseChanged: { - if (containsMouse) { scrollBar.visible = true } @@ -59,6 +58,11 @@ UkuiMenuExtension { anchors.fill: parent anchors.leftMargin: 12 spacing: 4 + focus: true + highlightMoveDuration: 0 + onActiveFocusChanged: currentIndex = 0 + onCountChanged: currentIndex = 0 + keyNavigationWraps: true ScrollBar.vertical: AppControls2.ScrollBar { id: scrollBar @@ -68,11 +72,21 @@ UkuiMenuExtension { } delegate: AppControls2.StyleBackground { + id: delegateItem width: ListView.view.width - 18 height: 40 useStyleTransparent: false alpha: itemArea.pressed ? 1 : itemArea.hovered ? 0.65 : 0 radius: 8 + focus: true + + states: State { + when: delegateItem.activeFocus + PropertyChanges { + target: delegateItem + alpha: 0.65 + } + } Row { anchors.fill: parent