File tree Expand file tree Collapse file tree 2 files changed +605
-516
lines changed
src/components/manager/mixins Expand file tree Collapse file tree 2 files changed +605
-516
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ export default {
101101 const alreadySelected = this . selected [ type ] . includes ( path ) ;
102102
103103 // if pressed Ctrl -> multi select
104- if ( event . ctrlKey ) {
104+ if ( event . ctrlKey || event . metaKey ) {
105105 if ( ! alreadySelected ) {
106106 // add new selected item
107107 this . $store . commit ( `fm/${ this . manager } /setSelected` , { type, path } ) ;
@@ -112,7 +112,9 @@ export default {
112112 }
113113
114114 // single select
115- if ( ! event . ctrlKey && ! alreadySelected ) this . $store . commit ( `fm/${ this . manager } /changeSelected` , { type, path } ) ;
115+ if ( ! event . ctrlKey && ! alreadySelected && ! event . metaKey ) {
116+ this . $store . commit ( `fm/${ this . manager } /changeSelected` , { type, path } ) ;
117+ }
116118 } ,
117119
118120 /**
You can’t perform that action at this time.
0 commit comments