Hiding password on enter press
This commit is contained in:
parent
9ba4070c48
commit
72bc20ebd1
|
@ -41,6 +41,10 @@ fun PasswordTextField(password: String = "", label: String = "Passwort", onEnter
|
|||
)
|
||||
},
|
||||
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()
|
||||
}
|
||||
)
|
||||
}
|
Loading…
Reference in New Issue