Add Alt+Q shortcut for Match / Quick Match

This commit is contained in:
Tiberiu Ichim 2026-02-20 19:14:07 +02:00
parent 2f8a3c9fc7
commit 9c0bb3162f
3 changed files with 14 additions and 0 deletions

View file

@ -16,6 +16,7 @@ To improve the efficiency of batch operations, global keyboard listeners have be
- **Merge**: `Ctrl + M` (Requires 2+ selected items).
- **Move to Library**: `Ctrl + Shift + M`.
- **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):
- **Home**: `Alt + H`.

View file

@ -574,6 +574,13 @@ export default {
} else if (this.isItemPage) {
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) {
const libId = this.currentLibrary.id
if (e.key.toLowerCase() === 'h') {

View file

@ -517,6 +517,10 @@ export default {
this.$store.commit('setBookshelfBookIds', [])
this.$store.commit('showEditModalOnTab', { libraryItem: this.libraryItem, tab: 'cover' })
},
showEditMatch() {
this.$store.commit('setBookshelfBookIds', [])
this.$store.commit('showEditModalOnTab', { libraryItem: this.libraryItem, tab: 'match' })
},
openEbook() {
this.$store.commit('showEReader', { libraryItem: this.libraryItem, keepProgress: true })
},
@ -912,6 +916,7 @@ export default {
this.contextMenuAction({ action: 'move' })
})
this.$eventBus.$on('item_shortcut_reset', this.resetMetadata)
this.$eventBus.$on('item_shortcut_match', this.showEditMatch)
},
beforeDestroy() {
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_move')
this.$eventBus.$off('item_shortcut_reset', this.resetMetadata)
this.$eventBus.$off('item_shortcut_match', this.showEditMatch)
}
}
</script>