From e211acae9b0d261fbe0048bee681f56656e21e98 Mon Sep 17 00:00:00 2001 From: "B.Melnik" Date: Mon, 19 Apr 2021 17:02:59 +0300 Subject: [PATCH] feat: process activeFocusChange event and select all in address line in Browser --- ui/app/AppLayouts/Browser/BrowserHeader.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/app/AppLayouts/Browser/BrowserHeader.qml b/ui/app/AppLayouts/Browser/BrowserHeader.qml index 38125eeda4..4a74da73b1 100644 --- a/ui/app/AppLayouts/Browser/BrowserHeader.qml +++ b/ui/app/AppLayouts/Browser/BrowserHeader.qml @@ -104,6 +104,12 @@ Rectangle { focus: true text: "" color: Style.current.textColor + onActiveFocusChanged: { + if (activeFocus) { + addressBar.selectAll() + } + } + Keys.onPressed: { // TODO: disable browsing local files? file:// if (event.key === Qt.Key_Enter || event.key === Qt.Key_Return) {