Skip to content

Commit 100a008

Browse files
hold shift to add multiple extenions/sounds/costumes/etc
1 parent 0e8fe0b commit 100a008

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/library/library.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)