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");