Commit 50434b28 authored by Arjen Hiemstra's avatar Arjen Hiemstra Committed by Nate Graham
Browse files

Only focus search field by default if that doesn't show a virtual keyboard

With touch input and a virtual keyboard enabled, having the search field
set default focus means the virtual keyboard gets shown when the applet
opens, which isn't great behaviour since you most likely aren't opening
the applet to search.
parent de02ce7a
Pipeline #128716 passed with stage
in 1 minute and 30 seconds
......@@ -11,6 +11,8 @@ import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.networkmanagement 0.2 as PlasmaNM
import org.kde.kquickcontrolsaddons 2.0
import org.kde.kirigami 2.19 as Kirigami
RowLayout {
id: toolbar
......@@ -151,7 +153,7 @@ RowLayout {
inputMethodHints: Qt.ImhNoPredictiveText
focus: true
focus: !Kirigami.InputMethod.willShowOnActive
clearButtonShown: true
placeholderText: i18nc("text field placeholder text", "Search…")
......@@ -177,6 +179,8 @@ RowLayout {
Component.onCompleted: {
if (Kirigami.InputMethod.willShowOnActive) {
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