From 2c627b3d60b2946c912d4d4379e76f5807e65c07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Tue, 21 Jan 2025 13:01:57 +0100 Subject: [PATCH] =?UTF-8?q?Kdy=C5=BE=20u=C5=BE=20jsem=20u=20toho,=20tak=20?= =?UTF-8?q?event.keyCode=20->=20event.code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/korektury/korekturovatko/__edit_komentar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korektury/templates/korektury/korekturovatko/__edit_komentar.html b/korektury/templates/korektury/korekturovatko/__edit_komentar.html index 2719258d..77d9a066 100644 --- a/korektury/templates/korektury/korekturovatko/__edit_komentar.html +++ b/korektury/templates/korektury/korekturovatko/__edit_komentar.html @@ -27,7 +27,7 @@ // ctrl-enter submits form commform._text.addEventListener("keydown", ev => { - if( (ev.keyCode == 13 || ev.keyCode == 10 ) && ev.ctrlKey ) commform.submit(); + if (ev.code === "Enter" && ev.ctrlKey) commform.submit(); }); //hide comment form