mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-01 05:29:41 +00:00
feat: add Alt navigation shortcuts (Home, Library, Series, Collections, Authors)
This commit is contained in:
parent
791d78884d
commit
0237b9a1e9
2 changed files with 25 additions and 0 deletions
|
|
@ -574,6 +574,24 @@ export default {
|
|||
} else if (this.isItemPage) {
|
||||
this.$eventBus.$emit('item_shortcut_reset')
|
||||
}
|
||||
} else if (alt && this.currentLibrary?.id) {
|
||||
const libId = this.currentLibrary.id
|
||||
if (e.key.toLowerCase() === 'h') {
|
||||
e.preventDefault()
|
||||
this.$router.push(`/library/${libId}`)
|
||||
} else if (e.key.toLowerCase() === 'l') {
|
||||
e.preventDefault()
|
||||
this.$router.push(`/library/${libId}/bookshelf`)
|
||||
} else if (e.key.toLowerCase() === 's') {
|
||||
e.preventDefault()
|
||||
this.$router.push(`/library/${libId}/bookshelf/series`)
|
||||
} else if (e.key.toLowerCase() === 'c') {
|
||||
e.preventDefault()
|
||||
this.$router.push(`/library/${libId}/bookshelf/collections`)
|
||||
} else if (e.key.toLowerCase() === 'a') {
|
||||
e.preventDefault()
|
||||
this.$router.push(`/library/${libId}/bookshelf/authors`)
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue