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:
parent
f3ab4ce9c9
commit
44aeffa160
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue