summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/TopBar.qml10
1 files changed, 8 insertions, 2 deletions
diff --git a/resources/qml/TopBar.qml b/resources/qml/TopBar.qml

index 716a5e10..4608da4d 100644 --- a/resources/qml/TopBar.qml +++ b/resources/qml/TopBar.qml
@@ -33,6 +33,11 @@ Pane { searchField.text = "" } + Shortcut { + sequence: StandardKey.Find + onActivated: searchButton.searchActive = !searchButton.searchActive + } + Layout.fillWidth: true implicitHeight: topLayout.height + Nheko.paddingMedium * 2 z: 3 @@ -268,8 +273,9 @@ Pane { image: ":/icons/icons/ui/search.svg" ToolTip.visible: hovered ToolTip.text: qsTr("Search this room") - onClicked: { - searchActive = !searchActive + onClicked: searchActive = !searchActive + + onSearchActiveChanged: { if (searchActive) { searchField.forceActiveFocus(); }