diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-06-07 06:27:09 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-06-07 06:27:09 (GMT) |
commit | f6eeb554631faa542cb14388a46f05a0822b8033 (patch) | |
tree | 1143dd84fe5779f66ce6302543a59411eb153586 /demos/declarative/webbrowser | |
parent | 0619c12bfee40826034dbc31f9d398182a3aa49f (diff) | |
download | Qt-f6eeb554631faa542cb14388a46f05a0822b8033.zip Qt-f6eeb554631faa542cb14388a46f05a0822b8033.tar.gz Qt-f6eeb554631faa542cb14388a46f05a0822b8033.tar.bz2 |
Accept enter key in the webbrower demo url input.
Diffstat (limited to 'demos/declarative/webbrowser')
-rw-r--r-- | demos/declarative/webbrowser/content/UrlInput.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/demos/declarative/webbrowser/content/UrlInput.qml b/demos/declarative/webbrowser/content/UrlInput.qml index 9ea1904..b57fae6 100644 --- a/demos/declarative/webbrowser/content/UrlInput.qml +++ b/demos/declarative/webbrowser/content/UrlInput.qml @@ -73,6 +73,10 @@ Item { urlText.text = webView.url webView.focus = true } + Keys.onEnterPressed: { + container.urlEntered(urlText.text) + webView.focus = true + } Keys.onReturnPressed: { container.urlEntered(urlText.text) webView.focus = true |