Skip to content

Commit

Permalink
feat: select multiple files with ctrl even with singleClick option (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ShlomoCode committed Jan 30, 2024
1 parent 2cfee21 commit d49c3df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/files/ListingItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export default {
action(overwrite, rename);
},
itemClick: function (event) {
if (this.singleClick && !this.$store.state.multiple) this.open();
if (!(event.ctrlKey || event.metaKey) && this.singleClick && !this.$store.state.multiple) this.open();

Check warning on line 194 in frontend/src/components/files/ListingItem.vue

View workflow job for this annotation

GitHub Actions / lint-frontend

Replace `!(event.ctrlKey·||·event.metaKey)·&&·this.singleClick·&&·!this.$store.state.multiple)` with `⏎········!(event.ctrlKey·||·event.metaKey)·&&⏎········this.singleClick·&&⏎········!this.$store.state.multiple⏎······)⏎·······`
else this.click(event);
},
click: function (event) {
Expand Down

0 comments on commit d49c3df

Please sign in to comment.