feat: process activeFocusChange event and select all in address line in Browser

This commit is contained in:
B.Melnik 2021-04-19 17:02:59 +03:00 committed by Iuri Matias
parent 5d34147956
commit e211acae9b
1 changed files with 6 additions and 0 deletions

View File

@ -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) {