Browse Source

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

Michael Wang 4 years ago
parent
commit
85aec4a19b
1 changed files with 1 additions and 0 deletions
  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) {
     function numberKeyListener(event: KeyboardEvent) {
       // console.log(event);
       // console.log(event);
       if (!store.currentQuestion || !store.currentTask) return;
       if (!store.currentQuestion || !store.currentTask) return;
+      if (store.globalMask) return;
 
 
       function indexOfCurrentQuestion() {
       function indexOfCurrentQuestion() {
         return store.currentTask?.questionList.findIndex(
         return store.currentTask?.questionList.findIndex(