Explorar el Código

有遮罩层的情况下,不接受键盘输入

Michael Wang hace 4 años
padre
commit
85aec4a19b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/features/mark/MarkBoardKeyBoard.vue

+ 1 - 0
src/features/mark/MarkBoardKeyBoard.vue

@@ -175,6 +175,7 @@ export default defineComponent({
     function numberKeyListener(event: KeyboardEvent) {
       // console.log(event);
       if (!store.currentQuestion || !store.currentTask) return;
+      if (store.globalMask) return;
 
       function indexOfCurrentQuestion() {
         return store.currentTask?.questionList.findIndex(