From 93f9214aaddb8f04be093ecd882e81d848d95b2f Mon Sep 17 00:00:00 2001 From: Patryk Osmaczko Date: Fri, 18 Mar 2022 18:15:57 +0100 Subject: [PATCH] fix(StatusBaseInput): apply changes required by StatusSeedPhraseInput --- src/StatusQ/Controls/StatusBaseInput.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/StatusQ/Controls/StatusBaseInput.qml b/src/StatusQ/Controls/StatusBaseInput.qml index 3e4ec133..e2af2032 100644 --- a/src/StatusQ/Controls/StatusBaseInput.qml +++ b/src/StatusQ/Controls/StatusBaseInput.qml @@ -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