File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,9 @@ export default {
65
65
* Select file
66
66
*/
67
67
selectAction ( ) {
68
+ if ( this . multiSelect ) {
69
+ this . $store . state . fm . fileCallback ( this . selectedItems . map ( item => item . path ) )
70
+ }
68
71
// file callback
69
72
this . $store . dispatch ( 'fm/url' , {
70
73
disk : this . selectedDisk ,
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export default {
54
54
* @returns {boolean|null }
55
55
*/
56
56
selectRule ( ) {
57
- return ! this . multiSelect && this . firstItemType === 'file' &&
57
+ return this . firstItemType === 'file' &&
58
58
this . $store . state . fm . fileCallback ;
59
59
} ,
60
60
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ export default {
101
101
const alreadySelected = this . selected [ type ] . includes ( path ) ;
102
102
103
103
// if pressed Ctrl -> multi select
104
- if ( event . ctrlKey ) {
104
+ if ( event . shiftKey ) {
105
105
if ( ! alreadySelected ) {
106
106
// add new selected item
107
107
this . $store . commit ( `fm/${ this . manager } /setSelected` , { type, path } ) ;
@@ -112,7 +112,7 @@ export default {
112
112
}
113
113
114
114
// single select
115
- if ( ! event . ctrlKey && ! alreadySelected ) this . $store . commit ( `fm/${ this . manager } /changeSelected` , { type, path } ) ;
115
+ if ( ! event . shiftKey && ! alreadySelected ) this . $store . commit ( `fm/${ this . manager } /changeSelected` , { type, path } ) ;
116
116
} ,
117
117
118
118
/**
You can’t perform that action at this time.
0 commit comments