Yuki Takei 7 年 前
コミット
f5c257d0df
1 ファイル変更1 行追加1 行削除
  1. 1 1
      resource/js/legacy/crowi.js

+ 1 - 1
resource/js/legacy/crowi.js

@@ -987,7 +987,7 @@ window.addEventListener('keydown', (event) => {
 
   // ignore when target dom is input
   const inputPattern = /^input|textinput|textarea$/i;
-  if (target.tagName.match(inputPattern) || target.isContentEditable) {
+  if (inputPattern.test(target.tagName) || target.isContentEditable) {
     return;
   }