-
-
Notifications
You must be signed in to change notification settings - Fork 666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PasswordInput
brings up Apple password manager on MacOS but on_change
doesn't fire
#2737
Comments
Thanks for the report. Unfortunately, I can't reproduce what you're describing. I'm able to autofill a password; I get a notification that the value has changed when the full password is (automatically) entered, and then I get continued notifications if I type after that. I don't get any automated display of the password autofill dialog though - I have to right-click, select autofill, then select a password. That may be because I don't use Apple's password autofill by default. Are you seeing some sort of automatic behavior on focus? |
Thanks for the quick response. Yes, I automatically get the "Password" popup that you see in the first screenshot when I focus on the Your guess is likely right: I have this setting in my control panel: And yes, when using autofill via the right-click menu everything works as expected. Digging a bit further, this stackoverflow discussion seems relevant or related: https://stackoverflow.com/questions/46391814/how-to-detect-when-user-used-password-autofill-on-a-uitextfield So this may well be an issue with the underlying Cocoa API. Since on further investigation |
Thanks for confirming. It's not clear if this is a bug in macOS, or intentional behavior; but it seems possible that something like this approach from StackOverflow might form the basis for a fix. |
Describe the bug
On MacOS, when using a
PasswordInput
as the second or later field, when you move focus to the password field it brings up a menu to fill the field from the password manager (this doesn't happen if the field is the default editable field):If you then go through the password manager and select a password, the obscured password is entered into the field, but the change handler doesn't fire.
Everything works as expected if you use the right-click -> "AutoFill" -> "Passwords" menu.
This is on macOS Sonoma 14.5, Python 3.12.4 and Toga 0.4.5 installed via pip.
Steps to reproduce
Expected behavior
1. The password pop-up possibly shouldn't appear (but it can be dismissed easily by pressing escape, and if this is a MacOS behaviour there is nothing to be done).Edit: this behaviour seems to be controlled by the control panel settings for password autofill (see discussion), so not something Toga can control.2. When the password is auto-filled, the
on_change
handler should fire.Screenshots
No response
Environment
Machine is a Mac Studio (Apple Silicon M1), Python was installed via MacPorts, toga via
pip
in a dedicated venv:Logs
Additional context
When I have some spare cycles I will run against the main branch of the various projects to make sure this hasn't been fixed since the last release, but I couldn't see any issues which matched this.
The text was updated successfully, but these errors were encountered: