diff --git a/chrome_addon/lib/main.js b/chrome_addon/lib/main.js index 77a49a4..8e6363a 100644 --- a/chrome_addon/lib/main.js +++ b/chrome_addon/lib/main.js @@ -242,6 +242,16 @@ async function ask_server(form, field, logins, domain, wdomain, mkey, submit) if (submit) { form.removeEventListener("submit", on_sumbit, true); + // Propagate change + change_cb = field.onchange; + if (change_cb) + change_cb(); + // Try to type "enter" + var evt = new KeyboardEvent("keydown"); + delete evt.which; + evt.which = 13; + field.dispatchEvent(evt); + // Submit form form.submit(); } else