瀏覽代碼

Поправка багов

Book Pauk 3 年之前
父節點
當前提交
5ee58ad6f0
共有 1 個文件被更改,包括 1 次插入11 次删除
  1. 1 11
      client/components/Reader/LoaderPage/LoaderPage.vue

+ 1 - 11
client/components/Reader/LoaderPage/LoaderPage.vue

@@ -186,19 +186,9 @@ class LoaderPage {
         }
 
         const input = this.$refs.input.getNativeElement();
-        if (event.type == 'keydown' && document.activeElement === input)
+        if (event.type == 'keydown' && (document.activeElement === input || event.code == 'Enter') && event.code != 'Escape')
             return true;
 
-        /*const input = this.$refs.input.getNativeElement();
-        if (event.type == 'keydown' && document.activeElement !== input) {
-            const action = this.$root.readerActionByKeyEvent(event);
-            switch (action) {
-                case 'help':
-                    this.openHelp(event);
-                    return true;
-            }
-        }*/
-
         return false;
     }
 }