diff options
Diffstat (limited to 'demos/declarative')
-rw-r--r-- | demos/declarative/webbrowser/fieldtext/FieldText.qml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/demos/declarative/webbrowser/fieldtext/FieldText.qml b/demos/declarative/webbrowser/fieldtext/FieldText.qml index 976785b..fe55185 100644 --- a/demos/declarative/webbrowser/fieldtext/FieldText.qml +++ b/demos/declarative/webbrowser/fieldtext/FieldText.qml @@ -60,7 +60,7 @@ Item { opacity: 0 } - LineEdit { + TextInput { id: textEdit text: fieldText.text focus: false @@ -72,8 +72,7 @@ Item { color: "black" font.bold: true readOnly: true - Keys.onEnterPressed: confirm() - Keys.onReturnPressed: confirm() + onAccepted: confirm() Keys.onEscapePressed: reset() } |