summaryrefslogtreecommitdiffstats
path: root/examples/qtquick/quickwindow.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qtquick/quickwindow.qml')
-rw-r--r--examples/qtquick/quickwindow.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/qtquick/quickwindow.qml b/examples/qtquick/quickwindow.qml
index cd005940d..9086d26fa 100644
--- a/examples/qtquick/quickwindow.qml
+++ b/examples/qtquick/quickwindow.qml
@@ -50,6 +50,16 @@ ApplicationWindow {
visible: true
title: webContentsView.title
+ // Focus and select text in URL bar
+ Action {
+ id: focus
+ shortcut: "Ctrl+L" // How to have Cmd + L on Mac ?
+ onTriggered: {
+ addressBar.forceActiveFocus();
+ addressBar.selectAll();
+ }
+ }
+
toolBar: ToolBar {
id: navigationBar
RowLayout {