keepassxreboot / keepassxc

KeePassXC is a cross-platform community-driven port of the Windows application “Keepass Password Safe”.
https://keepassxc.org/
Other
20.03k stars 1.42k forks source link

macOS: Password text cursor blinks on startup without focus #10946

Closed MonkeyBars3k closed 1 week ago

MonkeyBars3k commented 1 week ago

Overview

It's poor UX to have a blinking cursor when any field does not actually have focus and can't be typed into. macOS (and probably other OS) convention dictates no text cursor at all. This is also a security problem since user may mistakenly type KPXC database password into another window which does have focus.

Steps to Reproduce

  1. Open a database
  2. Close KeePassXC
  3. Click into another window's form field
  4. Reopen KeePassXC

Expected Behavior

KeePassXC opens without any cursor in the password field

Actual Behavior

KeePassXC opens with a blinking cursor in the password field

Context

macOS 12.7.5

KeePassXC - Version 2.6.4 Revision: 34a78f0

Qt 5.15.2 Debugging mode is disabled.

Operating system: macOS 12.7 CPU architecture: x86_64 Kernel: darwin 21.6.0

Enabled extensions:

Cryptographic libraries:

droidmonkey commented 1 week ago

You are running an extremely old version of keepassxc

MonkeyBars3k commented 1 week ago

Oops! Sorry about that.

But latest version solves this issue by stealing focus. Is there a way to prevent that?

droidmonkey commented 1 week ago

Minimize on startup? I really don't understand your problem to be honest.

MonkeyBars3k commented 1 week ago

Stealing focus is generally considered insecure and inconvenient as one may be in the middle of typing in another window.

droidmonkey commented 1 week ago

You can prevent that behavior right now by enabling minimize on startup. We have an open issue already to remove the focus on start behavior.