Skip to content

Commit

Permalink
fix: add missing case for adding assets
Browse files Browse the repository at this point in the history
  • Loading branch information
rein1410 committed Jan 13, 2025
1 parent f93a48e commit 295c032
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class SelectionManager<T> {
...this.items.slice(start, end).filter(a => !this._selection.find(s => itemsAreEqual(a, s))),
);
} else if (index === -1) {
if (multiSelect && (event?.ctrlKey || event?.shiftKey || additiveMode)) {
if (multiSelect && ((event?.ctrlKey || event?.metaKey) || event?.shiftKey || additiveMode)) {
this._selection.push(item);
} else {
this._selection = [item];
Expand Down

0 comments on commit 295c032

Please sign in to comment.