diff options
author | Tapani Mikola <tapani.mikola@nokia.com> | 2009-08-12 15:09:07 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-08-13 05:25:12 (GMT) |
commit | 0e7409583a3c0f6d8ba01c2d61ac00c02015a52b (patch) | |
tree | 061405747d9df0d33dfd88942ef0b19d3089a7fa /demos | |
parent | 8a183d6259f8a464587b69f5c6ad831364383610 (diff) | |
download | Qt-0e7409583a3c0f6d8ba01c2d61ac00c02015a52b.zip Qt-0e7409583a3c0f6d8ba01c2d61ac00c02015a52b.tar.gz Qt-0e7409583a3c0f6d8ba01c2d61ac00c02015a52b.tar.bz2 |
KeyActions change to use Keys....
Diffstat (limited to 'demos')
-rw-r--r-- | demos/declarative/webbrowser/fieldtext/FieldText.qml | 7 |
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 { |