gPass

gPass Commit Details

Date:2017-07-08 08:42:34 (2 years 3 months ago)
Author:Grégory Soutadé
Branch:master
Commit:7a7d2fd72406bc41dde4caad4e28a2894e6babeb
Parents: 65821a4e4771c81080b0b6060dcfe4e818d401dc
Message:Try to raise onChange event and "enter" key before submit form

Changes:
Mchrome_addon/lib/main.js (1 diff)

File differences

chrome_addon/lib/main.js
242242
243243
244244
245
246
247
248
249
250
251
252
253
254
245255
246256
247257
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

Archive Download the corresponding diff file