Explorar o código

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

Book Pauk %!s(int64=3) %!d(string=hai) anos
pai
achega
5ee58ad6f0
Modificáronse 1 ficheiros con 1 adicións e 11 borrados
  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;
     }
 }