mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
add the command key for selecting to FileItemGrid
This commit is contained in:
@@ -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')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user