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

Do not fiddle with the search field when its not visible

Like it's the case on the compact/phone mode.
parent b6cdbb75
......@@ -39,13 +39,16 @@ Kirigami.GlobalDrawer {
}
function suggestSearchText(text) {
searchField.text = text
searchField.forceActiveFocus()
if (searchField.visible) {
searchField.text = text
searchField.forceActiveFocus()
}
}
// Give the search field keyboard focus by default
Component.onCompleted: {
searchField.forceActiveFocus();
if (searchField.visible)
searchField.forceActiveFocus();
}
header: Kirigami.AbstractApplicationHeader {
......
Supports Markdown
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