mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
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:
@@ -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()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user