From bfc756fb357068a02263243a26415949895164e8 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Sat, 20 Apr 2024 16:52:46 +0200 Subject: [PATCH] rejrejore --- src/qml/RoomInformation.qml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/qml/RoomInformation.qml b/src/qml/RoomInformation.qml index ac196273b..ea0b134c4 100644 --- a/src/qml/RoomInformation.qml +++ b/src/qml/RoomInformation.qml @@ -182,12 +182,6 @@ QQC2.ScrollView { } } - Component.onCompleted: { - headerItem.userListSearchField.KeyNavigation.tab = Qt.binding(() => { - return userList.count > 0 ? userList.itemAtIndex(userList.currentIndex !== -1 ? userList.currentIndex : 0) : null - }); - } - KSortFilterProxyModel { id: sortedMessageEventModel @@ -209,6 +203,7 @@ QQC2.ScrollView { delegate: Delegates.RoundedItemDelegate { id: userDelegate + required property int index required property string name required property string userId required property string avatar @@ -219,6 +214,8 @@ QQC2.ScrollView { text: name + KeyNavigation.backtab: index === 0 ? userList.headerItem.userListSearchField : null + onClicked: { userDelegate.highlighted = true; RoomManager.resolveResource(userDelegate.userId, "mention");