Работа над HistoryPage

This commit is contained in:
Book Pauk
2019-01-26 05:40:11 +07:00
parent 470ee63714
commit a2ebf0a71c
3 changed files with 27 additions and 6 deletions

View File

@@ -379,8 +379,15 @@ class Reader extends Vue {
if (this.$refs.page && this.$refs.page.keyHook)
handled = this.$refs.page.keyHook(event);
if (!handled && event.type == 'keydown' && event.code == 'Escape') {
this.loaderToggle();
if (!handled && event.type == 'keydown') {
switch (event.code) {
case 'Escape':
this.loaderToggle();
break;
case 'KeyH':
this.historyToggle();
break;
}
}
}
}