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

@ -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.

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