summaryrefslogtreecommitdiffstats
path: root/demos/declarative/webbrowser/content
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-06-07 06:27:09 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-06-07 06:27:09 (GMT)
commitf6eeb554631faa542cb14388a46f05a0822b8033 (patch)
tree1143dd84fe5779f66ce6302543a59411eb153586 /demos/declarative/webbrowser/content
parent0619c12bfee40826034dbc31f9d398182a3aa49f (diff)
downloadQt-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/content')
-rw-r--r--demos/declarative/webbrowser/content/UrlInput.qml4
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