[#1370] added IME status checking to the textarea keydown handler

This commit is contained in:
tenthree
2022-12-24 21:50:51 +08:00
committed by GitHub
parent a00606d969
commit d55610511d
29 changed files with 33 additions and 33 deletions
@@ -26,7 +26,7 @@
//
// note: New line could be added using "Enter+Shift".
function handleKeydown(e) {
if (e?.code === "Enter" && !e?.shiftKey) {
if (e?.code === "Enter" && !e?.shiftKey && !e?.isComposing) {
e.preventDefault();
// trigger parent form submission (if any)