Qt: fix the clear button in the search boxes
On Android the keyboard keeps the word being typed out of TextInput.text until it is committed, so the clear button didn't show for it and clearing left the composing word behind. The box now filters and shows the clear button by displayText, and clearing resets the input method first. The button is a 44px target that keeps its press. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hiQsCq11CwCPnKPp9D
This commit is contained in:
4 files changed
+42
-17
No files matched your search
+1
-1
@@ -264,7 +264,7 @@ Window {
|
||||
Qt.callLater(() => { providers = Host.widgetProviders(); wloading = false; });
|
||||
}
|
||||
readonly property var shownProviders: {
|
||||
const q = widgetSearch.text.toLowerCase(), out = [];
|
||||
const q = widgetSearch.shown.toLowerCase(), out = [];
|
||||
for (let i = 0; i < providers.length; i++) {
|
||||
const p = providers[i];
|
||||
if (!q || p.label.toLowerCase().indexOf(q) >= 0 || p.app.toLowerCase().indexOf(q) >= 0) out.push(i);
|
||||
|
||||
Reference in new issue
Block a user