File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,9 @@ class LibraryComponent extends React.Component {
8282 }
8383 }
8484 handleSelect ( id ) {
85- this . handleClose ( ) ;
85+ if ( ! this . _lastClickWasShift ) {
86+ this . handleClose ( ) ;
87+ }
8688 this . props . onItemSelected ( this . getFilteredData ( ) [ id ] ) ;
8789 }
8890 readFavoritesFromStorage ( ) {
@@ -303,6 +305,7 @@ class LibraryComponent extends React.Component {
303305 [ styles . withFilterBar ] : this . props . filterable || this . props . tags
304306 } ) }
305307 ref = { this . setFilteredDataRef }
308+ onClickCapture = { e => { this . _lastClickWasShift = e . shiftKey ; } }
306309 >
307310 { filteredData && this . getFilteredData ( ) . map ( ( dataItem , index ) => (
308311 dataItem === '---' ? (
@@ -405,4 +408,4 @@ LibraryComponent.defaultProps = {
405408 showPlayButton : false
406409} ;
407410
408- export default injectIntl ( LibraryComponent ) ;
411+ export default injectIntl ( LibraryComponent ) ;
You can’t perform that action at this time.
0 commit comments