Merge pull request #681 from amnezia-vpn/bugfix/mobile-auto-focus-disable
First element auto-focus disabled for the mobile platforms
This commit is contained in:
commit
d443a0063d
5 changed files with 7 additions and 2 deletions
|
@ -40,7 +40,7 @@ DrawerType2 {
|
|||
|
||||
Connections {
|
||||
target: root
|
||||
|
||||
enabled: !GC.isMobile()
|
||||
function onOpened() {
|
||||
header.forceActiveFocus()
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -137,6 +137,7 @@ Item {
|
|||
// textColor: "#D7D8DB"
|
||||
// borderWidth: 0
|
||||
|
||||
focusPolicy: Qt.NoFocus
|
||||
text: root.buttonText
|
||||
imageSource: root.buttonImageSource
|
||||
|
||||
|
|
|
@ -93,6 +93,7 @@ PageType {
|
|||
|
||||
Connections {
|
||||
target: serverNameEditDrawer
|
||||
enabled: !GC.isMobile()
|
||||
function onOpened() {
|
||||
serverName.textField.forceActiveFocus()
|
||||
}
|
||||
|
|
|
@ -648,6 +648,7 @@ PageType {
|
|||
|
||||
Connections {
|
||||
target: clientNameEditDrawer
|
||||
enabled: !GC.isMobile()
|
||||
function onOpened() {
|
||||
clientNameEditor.textField.forceActiveFocus()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue