Fix: passkey sound now layers in on password fields

RemSound's password boxes are deliberately NOT PasswordChar-masked (a screen-reader user can't see
a mask), so the key-click hook's "is this a password field?" check (UseSystemPasswordChar /
PasswordChar) was always false and the distinct passkey.wav never played. Password fields now mark
themselves with Tag = KeyClickService.PasswordFieldTag, and the hook checks that (keeping the
masking-flag check as a fallback). Tagged both password fields - ProfilePasswordDialog (which all
password entry routes through, including the send/receive streaming gate) and
ProfilePasswordManagerDialog. So a key click + passkey now layer together on every password keystroke.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Ednunp
2026-06-13 07:23:54 +01:00
co-authored by Claude Opus 4.8
parent 56417eb7c3
commit 0b7ad49021
3 changed files with 13 additions and 2 deletions
@@ -38,6 +38,8 @@ internal static class ProfilePasswordDialog
Dock = DockStyle.Top,
Width = 400,
AccessibleName = $"Password for profile {profileTitle}",
// Mark as a password field so the key-click hook layers in the passkey sound.
Tag = KeyClickService.PasswordFieldTag,
};
var hint = new Label
{