1
0
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:
bbedward
2025-07-22 23:51:18 -04:00
parent 9c8c25711c
commit e94d2af9ae
6 changed files with 41 additions and 36 deletions

View File

@@ -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;