From 27a279bc3cf0291bdd1bdba965aa0d6b7e011022 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Wed, 1 May 2019 13:34:47 +0800 Subject: [PATCH] Minor UX changes. --- imports/Spectral/Component/AutoTextField.qml | 2 +- imports/Spectral/Panel/RoomListPanel.qml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/imports/Spectral/Component/AutoTextField.qml b/imports/Spectral/Component/AutoTextField.qml index 1925826..1344709 100644 --- a/imports/Spectral/Component/AutoTextField.qml +++ b/imports/Spectral/Component/AutoTextField.qml @@ -26,7 +26,7 @@ TextField { states: [ State { name: "shown" - when: textField.text.length !== 0 + when: textField.text.length !== 0 || textField.activeFocus PropertyChanges { target: floatingPlaceholder; scale: 0.8 } PropertyChanges { target: floatingPlaceholder; anchors.topMargin: -floatingPlaceholder.height * 0.4 } } diff --git a/imports/Spectral/Panel/RoomListPanel.qml b/imports/Spectral/Panel/RoomListPanel.qml index 1a5079b..2741537 100644 --- a/imports/Spectral/Panel/RoomListPanel.qml +++ b/imports/Spectral/Panel/RoomListPanel.qml @@ -84,6 +84,11 @@ Item { ] } + Shortcut { + sequence: "Ctrl+F" + onActivated: searchField.forceActiveFocus() + } + ColumnLayout { anchors.fill: parent spacing: 0