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