diff --git a/app/static/js/table_editor.js b/app/static/js/table_editor.js index cb50c1fea..c1b9dd9f1 100644 --- a/app/static/js/table_editor.js +++ b/app/static/js/table_editor.js @@ -80,7 +80,7 @@ function modifCell(obj) { function key(event) { switch (event.key) { - case "Enter": modifCell(document.querySelector(".selected")); event.preventDefault(); ArrowMove(1, 0); break; + case "Enter": modifCell(document.querySelector(".selected")); event.preventDefault(); break; case "ArrowRight": ArrowMove(1, 0); break; case "ArrowLeft": ArrowMove(-1, 0); break; case "ArrowUp": ArrowMove(0, -1); break; @@ -110,6 +110,7 @@ function keyCell(event) { } this.classList.remove("modifying"); ArrowMove(0, 1); + modifCell(document.querySelector(".selected")); } } diff --git a/app/templates/pn/form_modules_ue_coefs.html b/app/templates/pn/form_modules_ue_coefs.html index 7c27f70c2..b0116ba79 100644 --- a/app/templates/pn/form_modules_ue_coefs.html +++ b/app/templates/pn/form_modules_ue_coefs.html @@ -64,6 +64,7 @@ //}, 1000); } ); + return true; }