Commit 4a0ff7bb authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

emojier: use the main search action as a toggle

parent 3ae6d0bb
...@@ -52,12 +52,13 @@ Kirigami.ScrollablePage ...@@ -52,12 +52,13 @@ Kirigami.ScrollablePage
} }
actions.main: Kirigami.Action { actions.main: Kirigami.Action {
checked: searchField.visible
icon.name: "search" icon.name: "search"
tooltip: i18n("Search...") tooltip: i18n("Search...")
shortcut: StandardKey.Find shortcut: StandardKey.Find
onTriggered: { onTriggered: {
searchField.visible = true searchField.visible = !searchField.visible
searchField.focus = true searchField.focus = searchField.visible
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment