diff --git a/client/components/Reader/HistoryPage/HistoryPage.vue b/client/components/Reader/HistoryPage/HistoryPage.vue index b49b047c..20819468 100644 --- a/client/components/Reader/HistoryPage/HistoryPage.vue +++ b/client/components/Reader/HistoryPage/HistoryPage.vue @@ -36,11 +36,18 @@ { return !search || item.touchTime.includes(search) || + item.touchDate.includes(search) || item.desc.title.toLowerCase().includes(search.toLowerCase()) || item.desc.author.toLowerCase().includes(search.toLowerCase()) }); diff --git a/client/components/Reader/Reader.vue b/client/components/Reader/Reader.vue index 24707af2..c115b0de 100644 --- a/client/components/Reader/Reader.vue +++ b/client/components/Reader/Reader.vue @@ -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':