From 807112fb1965a96ae4e46a59721315d8ef48e527 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Sun, 30 May 2021 00:06:16 +0200 Subject: [PATCH] Don't steal focus in panel search field --- imports/NeoChat/Panel/RoomDrawer.qml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/imports/NeoChat/Panel/RoomDrawer.qml b/imports/NeoChat/Panel/RoomDrawer.qml index cfd73c807..1ee556a7a 100644 --- a/imports/NeoChat/Panel/RoomDrawer.qml +++ b/imports/NeoChat/Panel/RoomDrawer.qml @@ -157,6 +157,16 @@ Kirigami.OverlayDrawer { } } + Pane { + padding: Kirigami.Units.smallSpacing + implicitWidth: parent.width + z: 2 + contentItem: Kirigami.SearchField { + id: userListSearchField + onAccepted: sortedMessageEventModel.filterString = text; + } + } + ScrollView { Layout.fillWidth: true Layout.fillHeight: true @@ -168,16 +178,6 @@ Kirigami.OverlayDrawer { boundsBehavior: Flickable.DragOverBounds activeFocusOnTab: true - header: Pane { - padding: Kirigami.Units.smallSpacing - implicitWidth: parent.width - z: 2 - contentItem: Kirigami.SearchField { - id: userListSearchField - onTextChanged: sortedMessageEventModel.filterString = text; - } - } - model: KSortFilterProxyModel { id: sortedMessageEventModel