From a263b168626654fb04a1a95c5447f13ca977634f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tinkl?= Date: Mon, 12 Jun 2023 17:02:27 +0200 Subject: [PATCH] fix: Holdings dropdown searcher locked Set the `KeyNavigation.backtab` to itself to avoid accidentally pressing `Shift+Tab` and tab away from the focused `StatusInput` (which makes it look like it's disabled) Fixes #10561 --- ui/app/AppLayouts/Chat/controls/community/EnsPanel.qml | 2 ++ .../Chat/controls/community/ExtendedDropdownContent.qml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ui/app/AppLayouts/Chat/controls/community/EnsPanel.qml b/ui/app/AppLayouts/Chat/controls/community/EnsPanel.qml index d8c1d81f06..cfc7fd9c4c 100644 --- a/ui/app/AppLayouts/Chat/controls/community/EnsPanel.qml +++ b/ui/app/AppLayouts/Chat/controls/community/EnsPanel.qml @@ -66,6 +66,8 @@ ColumnLayout { addOrUpdateButton.clicked() } + KeyNavigation.backtab: domainNameInput + Component.onCompleted: { if (text) { input.dirty = true diff --git a/ui/app/AppLayouts/Chat/controls/community/ExtendedDropdownContent.qml b/ui/app/AppLayouts/Chat/controls/community/ExtendedDropdownContent.qml index 9e2b82c1d1..62f6b17f29 100644 --- a/ui/app/AppLayouts/Chat/controls/community/ExtendedDropdownContent.qml +++ b/ui/app/AppLayouts/Chat/controls/community/ExtendedDropdownContent.qml @@ -393,6 +393,8 @@ Item { return qsTr("Search collectibles") } + KeyNavigation.backtab: searcher + Binding on placeholderText { when: d.currentItemName !== "" value: qsTr("Search %1").arg(d.currentItemName)