Skip to content

Commit

Permalink
ctrl+click or cmd+click keybinding for multiple selection
Browse files Browse the repository at this point in the history
  • Loading branch information
iRaziul authored Feb 13, 2024
1 parent 7e7b035 commit f4964ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/components/modals/curator-panel.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
handleItemClick: function (mediaId = null, event) {
if (! mediaId) return;
if ($wire.isMultiple && event && event.metaKey) {
if ($wire.isMultiple && event && (event.metaKey || event.ctrlKey)) {
if (this.isSelected(mediaId)) {
let toRemove = Object.values($wire.selected).find(obj => obj.id == mediaId)
$wire.removeFromSelection(toRemove.id);
Expand Down

0 comments on commit f4964ac

Please sign in to comment.