In my application there is a TEdit
with PasswordChar = '*'
.
When the user presses Ctrl + C a hint appears.
Translated:
Not Allowed
You cannot copy text from a password field.
And obviously, the Copy item in the drop-down menu is disabled
Is there a way to enable the copy action for password editors?
You cannot copy text from a password field.
You press Ctrl+V to paste in the password.
As another security precaution, a password field stores its value as an array of characters, rather than as a string. Like an ordinary text field, a password field fires an action event when the user indicates that text entry is complete, for example by pressing the Enter button.
The usual way is to have a button right to the edit field allowing to display the password. This may be bound to some access conditions. While the password is visible it can be copied as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With