summaryrefslogtreecommitdiffstats
path: root/demos/declarative/webbrowser/fieldtext/FieldText.qml
diff options
context:
space:
mode:
Diffstat (limited to 'demos/declarative/webbrowser/fieldtext/FieldText.qml')
-rw-r--r--demos/declarative/webbrowser/fieldtext/FieldText.qml7
1 files changed, 4 insertions, 3 deletions
diff --git a/demos/declarative/webbrowser/fieldtext/FieldText.qml b/demos/declarative/webbrowser/fieldtext/FieldText.qml
index a9d9504..d822d65 100644
--- a/demos/declarative/webbrowser/fieldtext/FieldText.qml
+++ b/demos/declarative/webbrowser/fieldtext/FieldText.qml
@@ -102,10 +102,11 @@ Item {
targets: [keyActions,textEdit]
}
- KeyActions {
+ Item {
id: keyActions
- keyReturn: "confirm()"
- enter: "confirm()"
+ Keys.onEnterPressed: confirm()
+ Keys.onReturnPressed: confirm()
+ Keys.onEscapePressed: reset()
}
MouseRegion {