mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-06 09:21:37 +00:00
Add Alt+Q shortcut for Match / Quick Match
This commit is contained in:
parent
2f8a3c9fc7
commit
9c0bb3162f
3 changed files with 14 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ To improve the efficiency of batch operations, global keyboard listeners have be
|
||||||
- **Merge**: `Ctrl + M` (Requires 2+ selected items).
|
- **Merge**: `Ctrl + M` (Requires 2+ selected items).
|
||||||
- **Move to Library**: `Ctrl + Shift + M`.
|
- **Move to Library**: `Ctrl + Shift + M`.
|
||||||
- **Reset Metadata**: `Alt + R`. (Note: `Alt` is used specifically to avoid conflict with standard "Reload" `Ctrl + R`).
|
- **Reset Metadata**: `Alt + R`. (Note: `Alt` is used specifically to avoid conflict with standard "Reload" `Ctrl + R`).
|
||||||
|
- **Quick Match / Match**: `Alt + Q`.
|
||||||
|
|
||||||
- **Navigation Shortcuts** (Requires an active library selection):
|
- **Navigation Shortcuts** (Requires an active library selection):
|
||||||
- **Home**: `Alt + H`.
|
- **Home**: `Alt + H`.
|
||||||
|
|
|
||||||
|
|
@ -574,6 +574,13 @@ export default {
|
||||||
} else if (this.isItemPage) {
|
} else if (this.isItemPage) {
|
||||||
this.$eventBus.$emit('item_shortcut_reset')
|
this.$eventBus.$emit('item_shortcut_reset')
|
||||||
}
|
}
|
||||||
|
} else if (alt && e.key.toLowerCase() === 'q') {
|
||||||
|
e.preventDefault()
|
||||||
|
if (this.numMediaItemsSelected > 0) {
|
||||||
|
this.batchAutoMatchClick()
|
||||||
|
} else if (this.isItemPage) {
|
||||||
|
this.$eventBus.$emit('item_shortcut_match')
|
||||||
|
}
|
||||||
} else if (alt && this.currentLibrary?.id) {
|
} else if (alt && this.currentLibrary?.id) {
|
||||||
const libId = this.currentLibrary.id
|
const libId = this.currentLibrary.id
|
||||||
if (e.key.toLowerCase() === 'h') {
|
if (e.key.toLowerCase() === 'h') {
|
||||||
|
|
|
||||||
|
|
@ -517,6 +517,10 @@ export default {
|
||||||
this.$store.commit('setBookshelfBookIds', [])
|
this.$store.commit('setBookshelfBookIds', [])
|
||||||
this.$store.commit('showEditModalOnTab', { libraryItem: this.libraryItem, tab: 'cover' })
|
this.$store.commit('showEditModalOnTab', { libraryItem: this.libraryItem, tab: 'cover' })
|
||||||
},
|
},
|
||||||
|
showEditMatch() {
|
||||||
|
this.$store.commit('setBookshelfBookIds', [])
|
||||||
|
this.$store.commit('showEditModalOnTab', { libraryItem: this.libraryItem, tab: 'match' })
|
||||||
|
},
|
||||||
openEbook() {
|
openEbook() {
|
||||||
this.$store.commit('showEReader', { libraryItem: this.libraryItem, keepProgress: true })
|
this.$store.commit('showEReader', { libraryItem: this.libraryItem, keepProgress: true })
|
||||||
},
|
},
|
||||||
|
|
@ -912,6 +916,7 @@ export default {
|
||||||
this.contextMenuAction({ action: 'move' })
|
this.contextMenuAction({ action: 'move' })
|
||||||
})
|
})
|
||||||
this.$eventBus.$on('item_shortcut_reset', this.resetMetadata)
|
this.$eventBus.$on('item_shortcut_reset', this.resetMetadata)
|
||||||
|
this.$eventBus.$on('item_shortcut_match', this.showEditMatch)
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
this.$eventBus.$off(`${this.libraryItem.id}_updated`, this.libraryItemUpdated)
|
this.$eventBus.$off(`${this.libraryItem.id}_updated`, this.libraryItemUpdated)
|
||||||
|
|
@ -928,6 +933,7 @@ export default {
|
||||||
this.$eventBus.$off('item_shortcut_consolidate', this.consolidate)
|
this.$eventBus.$off('item_shortcut_consolidate', this.consolidate)
|
||||||
this.$eventBus.$off('item_shortcut_move')
|
this.$eventBus.$off('item_shortcut_move')
|
||||||
this.$eventBus.$off('item_shortcut_reset', this.resetMetadata)
|
this.$eventBus.$off('item_shortcut_reset', this.resetMetadata)
|
||||||
|
this.$eventBus.$off('item_shortcut_match', this.showEditMatch)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue