mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-11 07:52:50 -05:00
fix auto focusing text fields
This commit is contained in:
@@ -16,10 +16,6 @@ DankModal {
|
||||
height: 230
|
||||
keyboardFocus: "ondemand"
|
||||
|
||||
onOpened: {
|
||||
passwordInput.forceActiveFocus()
|
||||
}
|
||||
|
||||
onVisibleChanged: {
|
||||
if (!visible) {
|
||||
wifiPasswordInput = "";
|
||||
@@ -100,6 +96,16 @@ DankModal {
|
||||
onTextEdited: {
|
||||
wifiPasswordInput = text;
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: root
|
||||
function onOpened() {
|
||||
passwordInput.forceActiveFocus();
|
||||
}
|
||||
function onDialogClosed() {
|
||||
passwordInput.clearFocus();
|
||||
}
|
||||
}
|
||||
onAccepted: {
|
||||
WifiService.connectToWifiWithPassword(wifiPasswordSSID, passwordInput.text);
|
||||
wifiPasswordDialogVisible = false;
|
||||
|
||||
Reference in New Issue
Block a user