add the command key for selecting to FileItemGrid

This commit is contained in:
Milos Holba
2020-12-05 17:38:08 +01:00
parent d2af7c1f5e
commit 0da525f692
2 changed files with 79 additions and 65 deletions

View File

@@ -158,7 +158,7 @@ export default {
events.$emit('contextMenu:hide')
if (!this.$isMobile()) {
if (e.ctrlKey && !e.shiftKey) {
if (e.ctrlKey || e.metaKey && !e.shiftKey) {
// Click + Ctrl
if (this.fileInfoDetail.some(item => item.unique_id === this.data.unique_id)) {
this.$store.commit('REMOVE_ITEM_FILEINFO_DETAIL', this.data)
@@ -171,7 +171,7 @@ export default {
let clickedItem = this.allData.indexOf(this.data)
// If Click + Shift + Ctrl dont remove already selected items
if (!e.ctrlKey) {
if (!e.ctrlKey && !e.metaKey) {
this.$store.commit('CLEAR_FILEINFO_DETAIL')
}