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

This commit is contained in:
tenthree authored and GitHub committed 2022-12-24 15:50:51 +02:00
1 parent a00606d969
commit d55610511d
29 files changed
+33 -33

No files matched your search

@@ -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)