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

This commit is contained in:
Book Pauk
2022-04-14 19:00:04 +07:00
parent ac0a4f0586
commit 5ee58ad6f0

View File

@@ -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;
}
}