- 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:
Garegin866 2024-03-12 00:02:47 +04:00
parent 0e87550d85
commit cb9a25006c
5 changed files with 7 additions and 2 deletions

View file

@ -40,7 +40,7 @@ DrawerType2 {
Connections {
target: root
enabled: !GC.isMobile()
function onOpened() {
header.forceActiveFocus()
}

View file

@ -2,6 +2,8 @@ import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import "../Config"
Item {
id: root
@ -32,6 +34,6 @@ Item {
}
}
repeat: false // Stop the timer after one trigger
running: true // Start the timer
running: !GC.isMobile() // Start the timer
}
}

View file

@ -137,6 +137,7 @@ Item {
// textColor: "#D7D8DB"
// borderWidth: 0
focusPolicy: Qt.NoFocus
text: root.buttonText
imageSource: root.buttonImageSource

View file

@ -93,6 +93,7 @@ PageType {
Connections {
target: serverNameEditDrawer
enabled: !GC.isMobile()
function onOpened() {
serverName.textField.forceActiveFocus()
}

View file

@ -648,6 +648,7 @@ PageType {
Connections {
target: clientNameEditDrawer
enabled: !GC.isMobile()
function onOpened() {
clientNameEditor.textField.forceActiveFocus()
}