- Removed additional focus frames for buttons inside text fields.
- For mobile platforms, disabled auto-focus on the first element when navigating on the page.
This commit is contained in:
parent
0e87550d85
commit
cb9a25006c
5 changed files with 7 additions and 2 deletions
|
@ -40,7 +40,7 @@ DrawerType2 {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: root
|
target: root
|
||||||
|
enabled: !GC.isMobile()
|
||||||
function onOpened() {
|
function onOpened() {
|
||||||
header.forceActiveFocus()
|
header.forceActiveFocus()
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,8 @@ import QtQuick
|
||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
|
||||||
|
import "../Config"
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
@ -32,6 +34,6 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
repeat: false // Stop the timer after one trigger
|
repeat: false // Stop the timer after one trigger
|
||||||
running: true // Start the timer
|
running: !GC.isMobile() // Start the timer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -137,6 +137,7 @@ Item {
|
||||||
// textColor: "#D7D8DB"
|
// textColor: "#D7D8DB"
|
||||||
// borderWidth: 0
|
// borderWidth: 0
|
||||||
|
|
||||||
|
focusPolicy: Qt.NoFocus
|
||||||
text: root.buttonText
|
text: root.buttonText
|
||||||
imageSource: root.buttonImageSource
|
imageSource: root.buttonImageSource
|
||||||
|
|
||||||
|
|
|
@ -93,6 +93,7 @@ PageType {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: serverNameEditDrawer
|
target: serverNameEditDrawer
|
||||||
|
enabled: !GC.isMobile()
|
||||||
function onOpened() {
|
function onOpened() {
|
||||||
serverName.textField.forceActiveFocus()
|
serverName.textField.forceActiveFocus()
|
||||||
}
|
}
|
||||||
|
|
|
@ -648,6 +648,7 @@ PageType {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: clientNameEditDrawer
|
target: clientNameEditDrawer
|
||||||
|
enabled: !GC.isMobile()
|
||||||
function onOpened() {
|
function onOpened() {
|
||||||
clientNameEditor.textField.forceActiveFocus()
|
clientNameEditor.textField.forceActiveFocus()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue