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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user