mirror of
https://github.com/gotson/komga.git
synced 2025-12-21 07:56:57 +01:00
feat(book reader): pressing ESC will close the toolbars
This commit is contained in:
parent
824ceb370e
commit
791f5dff08
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue