Browse Source

feat: 数据检查限制答案输入框按键

chenhao 2 years ago
parent
commit
44b1e94c0e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/features/admin/confirmPaper/ConfirmPaper.vue

+ 1 - 1
src/features/admin/confirmPaper/ConfirmPaper.vue

@@ -315,13 +315,13 @@ const allowKey = [
   "ArrowLeft",
   "ArrowRight",
   "#",
-  "ShiftLeft",
   "Shift",
   "[A-Za-z]",
 ];
 const allowKeyRef = new RegExp(allowKey.join("|"));
 
 function onPreventAnswerKey(e: KeyboardEvent) {
+  console.log(e)
   if (!allowKeyRef.test(e.key)) {
     e.preventDefault();
   }