Skip to content

Commit

Permalink
fix(cataloging-bulkchanges): keyboard shortcuts for next and previous…
Browse files Browse the repository at this point in the history
… preview
  • Loading branch information
lrosenstrom committed Nov 12, 2024
1 parent 7c0d531 commit fb04237
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
14 changes: 10 additions & 4 deletions cataloging/src/components/inspector/bulkchange-toolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ export default {
case 'previous':
this.previous();
break;
case 'next-preview':
this.nextPreview();
break;
case 'previous-preview':
this.previousPreview();
break;
case 'undo':
this.undo();
break;
Expand Down Expand Up @@ -296,8 +302,8 @@ export default {
v-if="lastItemActive && !finished"
class="Toolbar-btn btn btn-default toolbar-button"
:disabled="!hasNext"
v-tooltip.left="`${translatePhrase('Next')} (${getKeybindText('next')})`"
@click="nextPreview"
v-tooltip.left="`${translatePhrase('Next')} (${getKeybindText('next-preview')})`"
@click="formControl('next-preview')"
:aria-label="translatePhrase('Next')">
<i class="fa fa-fw fa-circle-o-notch fa-spin" v-show="loadingPreview.next" />
<i class="fa fa-arrow-right" v-show="!loadingPreview.next" />
Expand All @@ -306,8 +312,8 @@ export default {
v-if="lastItemActive && !finished"
class="Toolbar-btn btn btn-default toolbar-button"
:disabled="!hasPrevious"
v-tooltip.left="`${translatePhrase('Previous')} (${getKeybindText('previous')})`"
@click="previousPreview"
v-tooltip.left="`${translatePhrase('Previous')} (${getKeybindText('previous-preview')})`"
@click="formControl('previous-preview')"
:aria-label="translatePhrase('Previous')">
<i class="fa fa-fw fa-circle-o-notch fa-spin" v-show="loadingPreview.previous" />
<i class="fa fa-arrow-left" v-show="!loadingPreview.previous" />
Expand Down
4 changes: 3 additions & 1 deletion cataloging/src/resources/json/keybindings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"alt+b": "add-holding",
"alt+s": "focus-main-search",
"alt+down": "next",
"alt+up": "previous"
"alt+up": "previous",
"alt+right": "next-preview",
"alt+left": "previous-preview"
}
}

0 comments on commit fb04237

Please sign in to comment.