mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #578 from keepassxreboot/fix/focus_to_input_field
Focus to input field after keyboard fill
This commit is contained in:
commit
c3a3030310
1 changed files with 7 additions and 1 deletions
|
|
@ -1110,7 +1110,13 @@ kpxc.fillInFromActiveElement = function(suppressWarnings, passOnly = false) {
|
|||
const el = document.activeElement;
|
||||
if (el.tagName.toLowerCase() !== 'input') {
|
||||
if (kpxcFields.combinations.length > 0) {
|
||||
kpxc.fillInCredentials(kpxcFields.combinations[0], false, suppressWarnings);
|
||||
kpxc.fillInCredentials(kpxcFields.combinations[0], passOnly, suppressWarnings);
|
||||
|
||||
// Focus to the input field
|
||||
const field = _f(passOnly ? kpxcFields.combinations[0].password : kpxcFields.combinations[0].username);
|
||||
if (field) {
|
||||
field.focus();
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue