From 2a735ff1cc34826d3ae3e566158d319eb7146aff Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Sat, 20 Apr 2024 16:36:42 +0200 Subject: [PATCH] jreojreojr --- src/qml/RoomInformation.qml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/qml/RoomInformation.qml b/src/qml/RoomInformation.qml index d2bb86ec6..ac196273b 100644 --- a/src/qml/RoomInformation.qml +++ b/src/qml/RoomInformation.qml @@ -182,6 +182,12 @@ 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 @@ -265,8 +271,8 @@ QQC2.ScrollView { } onRoomChanged: { - if (root.headerItem) { - root.headerItem.userListSearchField.text = ""; + if (userList.headerItem) { + userList.headerItem.userListSearchField.text = ""; } userList.currentIndex = -1; }