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

Custom hotkeys/shortcuts/macros are blocked while KeePassium is running #343

Closed
ezamelczyk opened this issue Feb 15, 2024 · 4 comments
Closed
Assignees
Labels
bug Something isn't working macOS macOS-specific issue

Comments

@ezamelczyk
Copy link

ezamelczyk commented Feb 15, 2024

I'm using an MX Master 2s mouse and it has two buttons under my thumb that are mapped to switching workspaces (left/right). When I launch keepassium and unlock it everything works fine but when the keepassium window gains focus again it asks for a pin and it completely disables the desktop switching functionality of my mouse. It's like it's capturing all inputs and swallowing them. Unlocking it again does not fix the issue. I have to completely quit the app.

The issue does not occur with app protection disabled.

Environment:

  • Device: Macbook Pro M1
  • OS: macOS Sonoma 14.3.1
  • App Version: 1.48.142
@ezamelczyk ezamelczyk added the bug Something isn't working label Feb 15, 2024
@keepassium keepassium added the macOS macOS-specific issue label Feb 16, 2024
@keepassium keepassium changed the title Keepassium locks ability to switch workspaces when it's pin locked. Custom hotkeys/shortcuts/macros are blocked while KeePassium is running Feb 16, 2024
@keepassium
Copy link
Owner

Yeah, this is quite an annoying one…

Apparently, Mac Catalyst automatically activates the (system-wide) Secure Input mode in password fields, but fails to disable it when the field/app loses input focus. As a result, the system blocks all the input monitoring/modifying apps (a macOS security feature) because it considers you keep entering something sensitive (a Mac Catalyst bug). Seems to be a widespread issue among macOS apps, too…

From a quick search, it seems to be possible to control this manually by tapping into some macOS-specific libraries. I will look into this.

@keepassium keepassium self-assigned this Feb 26, 2024
@keepassium
Copy link
Owner

In order to test possible solutions, here are the steps to reproduce the issue:

  1. Enable app passcode and Touch ID
  2. Launch KeePassium, it shows Touch ID prompt. Secure input mode (SIM) = off
  3. In Touch ID prompt, click "Use Passcode", then click the passcode field to focus on it (SIM -> on)
  4. Press Esc to show Touch ID prompt again (SIM -> off)
  5. Cmd-Tab to another app (SIM = off)
  6. Cmd-Tab back to KeePassium (SIM -> on)
  7. Cmd-Tab to another app
    • Expected: SIM -> off
    • Observed: SIM remains ON, system-wide, until KeePassium is restarted

keepassium added a commit that referenced this issue Mar 6, 2024
This is a workaround for what seems like a Mac Catalyst bug:
sometimes it forgets to disable secure input mode when app
becomes inactive (loses input focus), which basically disables
all keyboard-monitoring apps in the system.
@keepassium
Copy link
Owner

@ezamelczyk, it should be better now, please check.

@keepassium
Copy link
Owner

Ok, I assume it is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working macOS macOS-specific issue
Projects
None yet
Development

No branches or pull requests

2 participants