Skip to content

Commit

Permalink
Allow better bulk tag shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
GeniJaho committed Mar 19, 2024
1 parent 7413eb6 commit 2c1d4db
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions resources/js/Pages/Photos/Partials/BulkTag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const openModal = () => {
};
const onKeyDown = (event) => {
if ((event.ctrlKey || event.metaKey) && event.code === "Enter" && ! saveDisabled.value) {
if ((event.ctrlKey || event.metaKey) && (event.code === "Enter" || event.code === "ArrowRight") && ! saveDisabled.value) {
event.preventDefault();
save();
}
Expand Down Expand Up @@ -187,7 +187,10 @@ const onKeyDown = (event) => {
@click="save"
>
<Tooltip>
<span class="whitespace-nowrap dark:text-white">Ctrl (⌘) + Enter</span>
<div>
<div class="whitespace-nowrap dark:text-white">Ctrl (⌘) + Enter</div>
<div class="whitespace-nowrap dark:text-white">Ctrl (⌘) + &rarr;</div>
</div>
</Tooltip>
Save
</PrimaryButton>
Expand Down

0 comments on commit 2c1d4db

Please sign in to comment.