From 55d6d599d85c0a38ebb22f4c27039132f88f8b6a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 28 Sep 2018 11:37:48 +0300 Subject: scripts: fix ctrl-enter handler --- juick-server/src/main/assets/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')); } } } -- cgit v1.2.3