Explorar o código

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

chenhao %!s(int64=2) %!d(string=hai) anos
pai
achega
44b1e94c0e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
   }