From 77989a0eedba023449f91e9e1ec447dff73a4415 Mon Sep 17 00:00:00 2001 From: ViVi Date: Sun, 21 Apr 2024 01:09:39 +0900 Subject: [PATCH] =?UTF-8?q?=E7=99=BA=E8=A8=80=E7=B7=A8=E9=9B=86=E3=81=AE?= =?UTF-8?q?=20textarea=20=E5=86=85=E3=81=A7=20Ctrl+Enter=20=E3=82=92?= =?UTF-8?q?=E5=85=A5=E5=8A=9B=E3=81=97=E3=81=9F=E3=82=89=E9=80=81=E4=BF=A1?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/js/ui.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/js/ui.js b/lib/js/ui.js index 302481a8..3ad35970 100644 --- a/lib/js/ui.js +++ b/lib/js/ui.js @@ -2006,6 +2006,11 @@ document.onkeydown = function(e){ } else { mainTabChange(1); } } + else if (e.keyCode === 13 && e.target.getAttribute('id') === 'rewrite-comm') { + e.preventDefault(); + e.target.closest('.comm-area').querySelector('button').dispatchEvent(new Event('click')); + return; + } } // フォーム上のキー動作 if(e.target.classList.contains('form-comm')){