Yuki Takei hace 8 años
padre
commit
f5c257d0df
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
   }