Minor UX changes.

square-messages
Black Hat 2019-05-01 13:34:47 +08:00
parent ca66a29914
commit 27a279bc3c
2 changed files with 6 additions and 1 deletions

View File

@ -26,7 +26,7 @@ TextField {
states: [ states: [
State { State {
name: "shown" name: "shown"
when: textField.text.length !== 0 when: textField.text.length !== 0 || textField.activeFocus
PropertyChanges { target: floatingPlaceholder; scale: 0.8 } PropertyChanges { target: floatingPlaceholder; scale: 0.8 }
PropertyChanges { target: floatingPlaceholder; anchors.topMargin: -floatingPlaceholder.height * 0.4 } PropertyChanges { target: floatingPlaceholder; anchors.topMargin: -floatingPlaceholder.height * 0.4 }
} }

View File

@ -84,6 +84,11 @@ Item {
] ]
} }
Shortcut {
sequence: "Ctrl+F"
onActivated: searchField.forceActiveFocus()
}
ColumnLayout { ColumnLayout {
anchors.fill: parent anchors.fill: parent
spacing: 0 spacing: 0