Hiding password on enter press

This commit is contained in:
dankito 2024-09-01 19:04:03 +02:00
parent 9ba4070c48
commit 72bc20ebd1
1 changed files with 5 additions and 1 deletions

View File

@ -41,6 +41,10 @@ fun PasswordTextField(password: String = "", label: String = "Passwort", onEnter
) )
}, },
keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Password), keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Password),
onEnterPressed = onEnterPressed onEnterPressed = {
passwordVisible = false // actually only senseful for AddAccountDialog so that password isn't visible during (long) communication process with bank server
onEnterPressed?.invoke()
}
) )
} }