feat: process activeFocusChange event and select all in address line in Browser
This commit is contained in:
parent
5d34147956
commit
e211acae9b
|
@ -104,6 +104,12 @@ Rectangle {
|
||||||
focus: true
|
focus: true
|
||||||
text: ""
|
text: ""
|
||||||
color: Style.current.textColor
|
color: Style.current.textColor
|
||||||
|
onActiveFocusChanged: {
|
||||||
|
if (activeFocus) {
|
||||||
|
addressBar.selectAll()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Keys.onPressed: {
|
Keys.onPressed: {
|
||||||
// TODO: disable browsing local files? file://
|
// TODO: disable browsing local files? file://
|
||||||
if (event.key === Qt.Key_Enter || event.key === Qt.Key_Return) {
|
if (event.key === Qt.Key_Enter || event.key === Qt.Key_Return) {
|
||||||
|
|
Loading…
Reference in New Issue