diff options
author | Vitaly Takmazov | 2018-09-28 11:37:48 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-09-28 11:37:48 +0300 |
commit | 55d6d599d85c0a38ebb22f4c27039132f88f8b6a (patch) | |
tree | 579cd053346f9ff6ee4f9f6328c8d61cb8a3df2e /juick-server/src/main/assets/scripts.js | |
parent | 8c23239794a2dfa7be0ea01e5b36a0c4e51d1875 (diff) |
scripts: fix ctrl-enter handler
Diffstat (limited to 'juick-server/src/main/assets/scripts.js')
-rw-r--r-- | juick-server/src/main/assets/scripts.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/assets/scripts.js b/juick-server/src/main/assets/scripts.js index b43b8ff0..556fbf32 100644 --- a/juick-server/src/main/assets/scripts.js +++ b/juick-server/src/main/assets/scripts.js @@ -277,7 +277,7 @@ function postformListener(formEl, ev) { if (ev.ctrlKey && (ev.keyCode == 10 || ev.keyCode == 13)) { let form = formEl.closest('form'); if (!form.onsubmit || form.onsubmit()) { - form.submit(); + form.dispatchEvent(new Event('submit')); } } } |