feat: add Alt navigation shortcuts (Home, Library, Series, Collections, Authors)

This commit is contained in:
Tiberiu Ichim 2026-02-20 18:31:33 +02:00
parent 791d78884d
commit 0237b9a1e9
2 changed files with 25 additions and 0 deletions

View file

@ -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`)
}
}
}
},