Правка багов

This commit is contained in:
Book Pauk
2019-01-27 08:53:24 +07:00
parent 6ea401c80e
commit be8a66ac39
2 changed files with 14 additions and 6 deletions

View File

@@ -375,12 +375,12 @@ class Reader extends Vue {
keyHook(event) {
if (this.$root.rootRoute == '/reader') {
let handled = false;
if (this.$refs.page && this.$refs.page.keyHook)
handled = this.$refs.page.keyHook(event);
if (this.historyActive)
handled = this.$refs.historyPage.keyHook(event);
if (!handled && this.$refs.page && this.$refs.page.keyHook)
handled = this.$refs.page.keyHook(event);
if (!handled && event.type == 'keydown') {
switch (event.code) {
case 'Escape':