Skip to content
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

Native macOS app switcher showing (instead of alttab) when focus of the cursor is inside login forms of various apps #280

Closed
philipreichen opened this issue Apr 26, 2020 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@philipreichen
Copy link

philipreichen commented Apr 26, 2020

(this is a bug, but i can't tag it with a label. no idea why)

What's wrong?
The native macOS app switcher shows, instead of the alttab window switcher, when cursor if focused on textbox of login screen (of the master password) of 1Password app.
This only happens when the focused window is the login screen of 1Password app. If it's not the focused window, then alttab functions properly.

When does it happen
When cursor is focused inside a textbox of a login form. Confirmed cases:

How to reproduce
Two cases:

  1. Open 1Password app, focus cursor inside the textbox where master password is typed in, do cmd+tab
  2. Open chrome, go to https://www.banorte.com/wps/portal/banorte, focus cursor inside textbox where username goes, do cmd+tab
@lwouis lwouis added the duplicate This issue or pull request already exists label Apr 26, 2020
@lwouis
Copy link
Owner

lwouis commented Apr 26, 2020

I already noticed such behavior, and investigated this in #17. I'll close this ticket as a duplicate.

Please refer to #17 latest comments for the full picture, but basically it's a security feature of macOS that an app should not be able to capture keyboard input of another app, if the focus is on a secure text field. Otherwise you can have an app, like AltTab, keylogging all your passwords.

There are technical workarounds, not even using private APIs, but simply using the old deprecated, yet still publicly available, carbon API. This would allow us to capture the keys on such secure text fields. I have an ethical opposition to that though. I want to honor macOS security intention.

It is a tad annoying to not be able to switch from a password field, but I think the alternative is less desirable

@lwouis lwouis closed this as completed Apr 26, 2020
@philipreichen
Copy link
Author

Thanks a lot for...

  • ... working through my issue so quickly
  • ... explaining it so thoroughly
  • ... and finally creating a really nice looking, and great working alt-tab app for macOS!

I see why you wouldn't want to work around it and agree on both terms with you: it's a bit annoying for it not to work on password fields but I do definitely see why you (and Apple) want to enforce the current behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants