fix(StatusBaseInput): apply changes required by StatusSeedPhraseInput

This commit is contained in:
Patryk Osmaczko 2022-03-18 18:15:57 +01:00 committed by osmaczko
parent 22bbf9b177
commit 93f9214aad
1 changed files with 3 additions and 1 deletions

View File

@ -161,6 +161,7 @@ Item {
id: edit
property string previousText: text
property var keyEvent
width: flick.width
height: flick.height
@ -176,7 +177,8 @@ Item {
Keys.onReturnPressed: event.accepted = !multiline
Keys.onEnterPressed: event.accepted = !multiline
Keys.forwardTo: [statusBaseInput]
Keys.forwardTo: [root]
Keys.onPressed: edit.keyEvent = event.key
onCursorRectangleChanged: flick.ensureVisible(cursorRectangle)
onActiveFocusChanged: if (root.pristine) root.pristine = false