summaryrefslogtreecommitdiffstats
path: root/examples/webview
diff options
context:
space:
mode:
Diffstat (limited to 'examples/webview')
-rw-r--r--examples/webview/minibrowser/main.qml4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/webview/minibrowser/main.qml b/examples/webview/minibrowser/main.qml
index 89f918d..7a82ac0 100644
--- a/examples/webview/minibrowser/main.qml
+++ b/examples/webview/minibrowser/main.qml
@@ -77,9 +77,7 @@ ApplicationWindow {
id: urlField
inputMethodHints: Qt.ImhUrlCharactersOnly | Qt.ImhPreferLowercase
text: webView.url
- onEditingFinished: {
- webView.url = utils.fromUserInput(urlField.text);
- }
+ onAccepted: webView.url = utils.fromUserInput(text)
}
ToolButton {