Fix comment composition
[hnim.git] / hnim.js
diff --git a/hnim.js b/hnim.js
index ab854f8..3910014 100644 (file)
--- a/hnim.js
+++ b/hnim.js
@@ -51,7 +51,7 @@
     change(e.target.closest("tr.athing"));
   })
   document.addEventListener("keydown", (e) => {
-    if (e.isComposing) {
+    if (e.target.type === 'textarea' || e.isComposing) {
       return;
     }
     switch (e.key) {