Compare commits

...
Author SHA1 Message Date
Pascal Precht 44aeffa160 feat(StatusBaseInput): add keyReleased signal
This is so that we can get notified when keys on the text edit were released.
Unfortunately we don't seem to be able to attach to `Keys.onReleased` from outside
of the component.

Closes #372
2021-09-03 11:12:16 +02:00
+6
View File
@@ -52,6 +52,8 @@ Item {
name: ""
}
signal keyReleased()
implicitWidth: 448
implicitHeight: multiline ? Math.max(edit.implicitHeight + topPadding + bottomPadding, 44) : 44
@@ -162,6 +164,10 @@ Item {
}
}
Keys.onReleased: {
statusBaseInput.keyReleased();
}
onTextChanged: {
statusBaseInput.dirty = true
if (statusBaseInput.maximumLength > 0) {