secure-password-generator icon indicating copy to clipboard operation
secure-password-generator copied to clipboard

Trigger update events when inserting password

Open Douile opened this issue 6 years ago • 0 comments

When inserting or creating a password also dispatch relevant DOM events in the hopes of triggering event listeners that update the page.

This will work on sites where there is an event listener for keyboard events in the password field. This won't work on sites where event.isTrusted is checked (this is checked in some frameworks). This change could also trigger an error on some sites where an event listener uses event information that this script doesn't add, however as this error is within an event listener it shouldn't affect the sites main thread and the site will continue to function probably.

This should fix #29

Douile avatar Dec 07 '19 16:12 Douile