Commit 059a9dfe authored by Arjen Hiemstra's avatar Arjen Hiemstra Committed by Nate Graham
Browse files

Set Qt.ImhNoPredictiveText for text fields that act as search fields

This ensures that searching happens while the text is being entered from
a virtual keyboard.

BUG: 439914


(cherry picked from commit 2c28dd79)
parent 9f53bf16
......@@ -308,6 +308,8 @@ FocusScope {
placeholderText: i18n("Search…")
clearButtonShown: true
inputMethodHints: Qt.ImhNoPredictiveText
onTextChanged: {
runnerModel.query = text;
}
......
......@@ -172,6 +172,7 @@ PlasmaExtras.PlasmoidHeading {
clearButtonShown: true
Accessible.editable: true
Accessible.searchEdit: true
inputMethodHints: Qt.ImhNoPredictiveText
Binding {
target: KickoffSingleton
property: "searchField"
......
......@@ -45,6 +45,7 @@ Kirigami.ScrollablePage
text: view.searchText
placeholderText: i18n("Search…")
visible: view.showSearch
inputMethodHints: Qt.ImhNoPredictiveText
onTextChanged: {
emojiModel.search = text
if (emojiView.currentIndex < 0) {
......
......@@ -68,6 +68,7 @@ ColumnLayout {
id: filterPattern
Kirigami.FormData.label: i18n("File name pattern:")
enabled: (filterMode.currentIndex > 0)
inputMethodHints: Qt.ImhNoPredictiveText
}
TextField {
......@@ -75,6 +76,7 @@ ColumnLayout {
Kirigami.FormData.label: i18n("File types:")
enabled: (filterMode.currentIndex > 0)
placeholderText: i18n("Search…")
inputMethodHints: Qt.ImhNoPredictiveText
}
}
......
......@@ -137,6 +137,8 @@ Item {
placeholderText: i18n("Type path or URL…")
inputMethodHints: Qt.ImhNoPredictiveText
onEnabledChanged: {
if (enabled && text != "") {
cfg_url = text;
......
......@@ -73,6 +73,8 @@ Item {
clearButtonShown: true
visible: root.showingSearch
inputMethodHints: Qt.ImhNoPredictiveText
placeholderText: i18nd("plasma_shell_org.kde.plasma.desktop", "Search…")
onTextChanged: if (text != "") root.showingSearch = true
......
......@@ -228,6 +228,9 @@ Item {
Layout.fillWidth: true
clearButtonShown: true
placeholderText: i18nd("plasma_shell_org.kde.plasma.desktop", "Search…")
inputMethodHints: Qt.ImhNoPredictiveText
onTextChanged: {
list.positionViewAtBeginning()
list.currentIndex = -1
......
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