Small UI improvement.

This commit is contained in:
Black Hat
2018-07-20 22:36:19 +08:00
parent c330bb4ff5
commit 7837c2d75e
6 changed files with 53 additions and 11 deletions

View File

@@ -182,6 +182,7 @@ Item {
background: Item {
Rectangle {
z: 5
width: inputField.width * inputField.progress
height: parent.height
color: Material.accent
@@ -190,10 +191,13 @@ Item {
Rectangle { anchors.fill: parent; color: Material.theme == Material.Light ? "#eaeaea" : "#242424" }
}
Keys.onReturnPressed: {
if (inputField.text) {
postMessage(inputField.text)
inputField.text = ""
Shortcut {
sequence: "Ctrl+Return"
onActivated: {
if (inputField.text) {
inputField.postMessage(inputField.text)
inputField.text = ""
}
}
}