fix(autofill): stop sending Ctrl+A after the Tab in a full fill

Tabbing into an input already selects its whole content, so the second clear was redundant. Where Tab lands on something that is not editable - a link, a reveal button, the document, as on the Reddit login form - Ctrl+A selected the entire page instead and the password went nowhere.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
r-zakarya
2026-07-28 15:32:25 +01:00
parent 40e2054496
commit 38ba208455
2 changed files with 14 additions and 4 deletions
+5 -1
View File
@@ -1586,7 +1586,11 @@ begin
ForceReleaseModifiers;
SendVKey(VK_TAB);
Sleep(200);
ClearFieldIfWanted;
// No clear here: tabbing INTO an input already selects its whole content,
// so typing replaces it. Sending Ctrl+A as well is not just redundant — when
// Tab lands somewhere that is not an editable field (a link, a reveal
// button, the document itself, as on the Reddit login form) it selects the
// ENTIRE PAGE, and the password is then typed into nothing.
SendUnicodeString(APassword);
finally
// Re-register with the LIVE combo (user may have rebound it), not the