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
This commit is contained in:
Pascal Precht 2021-09-03 11:10:53 +02:00
parent f3ab4ce9c9
commit 44aeffa160
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 6 additions and 0 deletions

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) {