Преглед изворни кода

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

Michael Wang пре 4 година
родитељ
комит
85aec4a19b
1 измењених фајлова са 1 додато и 0 уклоњено
  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(