fix(StatusInput): Forward keys events to root

Closes: #372
This commit is contained in:
B.Melnik 2021-09-03 13:16:16 +03:00 committed by Pascal Precht
parent f3ab4ce9c9
commit 061c7d1c90
2 changed files with 4 additions and 1 deletions

View File

@ -110,7 +110,6 @@ Item {
QC.ScrollBar.vertical: QC.ScrollBar { interactive: multiline; enabled: multiline }
function ensureVisible(r) {
if (contentX >= r.x)
contentX = r.x;
@ -162,6 +161,8 @@ Item {
}
}
Keys.forwardTo: [statusBaseInput]
onTextChanged: {
statusBaseInput.dirty = true
if (statusBaseInput.maximumLength > 0) {

View File

@ -95,6 +95,8 @@ Item {
maximumLength: root.charLimit
onTextChanged: root.validate()
Keys.forwardTo: [root]
}
StatusBaseText {