Commit 072883ae authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Do not focus the searchfield on startup if a virtual keyboard is enabled

If a virtual keyboard (like Maliit) is enabled, we end up always showing
the virtual keyboard on startup, while there are many cases where a user
would not use the search. So make use of new API added to Kirigami to
detect if a virtual keyboard is enabled and only focus the search field
if there is no virtual keyboard enabled.
parent 35256285
Pipeline #125237 passed with stage
in 1 minute and 44 seconds
......@@ -7,7 +7,7 @@
import QtQuick 2.5
import QtQuick.Controls 2.5 as QQC2
import QtQuick.Layouts 1.1
import org.kde.kirigami 2.14 as Kirigami
import org.kde.kirigami 2.19 as Kirigami
import org.kde.systemsettings 1.0
Kirigami.ScrollablePage {
......@@ -65,7 +65,7 @@ Kirigami.ScrollablePage {
Kirigami.SearchField {
id: searchField
focus: true
focus: !Kirigami.InputMethod.willShowOnActive
Layout.fillWidth: true
onTextChanged: {
systemsettings.searchModel.filterRegExp = text;
......
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