mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Update pwgen.js
Added more dispatchEvent's when filling password
This commit is contained in:
parent
ef45c45838
commit
7ef89a5616
1 changed files with 6 additions and 0 deletions
|
|
@ -283,11 +283,17 @@ kpxcPasswordDialog.fill = function(e) {
|
|||
}
|
||||
|
||||
kpxcPasswordDialog.input.value = password.value;
|
||||
kpxcPasswordDialog.input.dispatchEvent(new Event('keydown', { bubbles: true }));
|
||||
kpxcPasswordDialog.input.dispatchEvent(new Event('keyup', { bubbles: true }));
|
||||
kpxcPasswordDialog.input.dispatchEvent(new Event('input', { bubbles: true }));
|
||||
kpxcPasswordDialog.input.dispatchEvent(new Event('change', { bubbles: true }));
|
||||
|
||||
if (kpxcPasswordDialog.nextField) {
|
||||
kpxcPasswordDialog.nextField.value = password.value;
|
||||
kpxcPasswordDialog.nextField.dispatchEvent(new Event('keydown', { bubbles: true }));
|
||||
kpxcPasswordDialog.nextField.dispatchEvent(new Event('keyup', { bubbles: true }));
|
||||
kpxcPasswordDialog.nextField.dispatchEvent(new Event('input', { bubbles: true }));
|
||||
kpxcPasswordDialog.nextField.dispatchEvent(new Event('change', { bubbles: true }));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue