diff options
Diffstat (limited to 'examples/qtquick/quickwindow.qml')
-rw-r--r-- | examples/qtquick/quickwindow.qml | 10 |
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 { |