améliore editeur coef (enter)

This commit is contained in:
Emmanuel Viennet 2021-11-13 12:07:22 +01:00
parent 459e75db89
commit 1488689bfb
2 changed files with 3 additions and 1 deletions

View File

@ -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"));
}
}

View File

@ -64,6 +64,7 @@
//}, 1000);
}
);
return true;
}
</script>
</body>