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
|
|
@ -17,6 +17,13 @@ To improve the efficiency of batch operations, global keyboard listeners have be
|
|||
- **Move to Library**: `Ctrl + Shift + M`.
|
||||
- **Reset Metadata**: `Alt + R`. (Note: `Alt` is used specifically to avoid conflict with standard "Reload" `Ctrl + R`).
|
||||
|
||||
- **Navigation Shortcuts** (Requires an active library selection):
|
||||
- **Home**: `Alt + H`.
|
||||
- **Library**: `Alt + L`.
|
||||
- **Series**: `Alt + S`.
|
||||
- **Collections**: `Alt + C`.
|
||||
- **Authors**: `Alt + A`.
|
||||
|
||||
## 2. Navigation and Filter Persistence
|
||||
The interface manages filter states dynamically to prevent confusion when switching contexts.
|
||||
|
||||
|
|
|
|||
|
|
@ -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