From f6eeb554631faa542cb14388a46f05a0822b8033 Mon Sep 17 00:00:00 2001
From: Martin Jones <martin.jones@nokia.com>
Date: Mon, 7 Jun 2010 16:27:09 +1000
Subject: Accept enter key in the webbrower demo url input.

---
 demos/declarative/webbrowser/content/UrlInput.qml | 4 ++++
 1 file changed, 4 insertions(+)

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
-- 
cgit v0.12