feat(book reader): pressing ESC will close the toolbars

This commit is contained in:
Gauthier Roebroeck 2020-03-18 10:52:34 +08:00
parent 824ceb370e
commit 791f5dff08

View file

@ -258,9 +258,9 @@ import ThumbnailExplorerDialog from '@/components/ThumbnailExplorerDialog.vue'
import { checkWebpFeature } from '@/functions/check-webp'
import { bookPageUrl } from '@/functions/urls'
import { ImageFit, ReaderReadingDirection } from '@/types/common'
import Vue from 'vue'
import { getBookTitleCompact } from '@/functions/book-title'
import { ReadingDirection } from '@/types/enum-books'
const cookieFit = 'webreader.fit'
const cookieReadingDirection = 'webreader.readingDirection'
@ -488,6 +488,10 @@ export default Vue.extend({
this.menu = false
break
}
if (this.toolbar) {
this.toolbar = false
break
}
this.closeBook()
break
}