TagSpaces is an offline, open source, document manager with tagging support
fixing #908 multiple file selection on Mac OS
Ilian Sapundshiev77e82ed5fb5e
diff --git a/app/perspectives/grid-perspective/components/MainContainer.js b/app/perspectives/grid-perspective/components/MainContainer.jsindex 8b70a372d..9ee6dff56 100644--- a/app/perspectives/grid-perspective/components/MainContainer.js+++ b/app/perspectives/grid-perspective/components/MainContainer.js@@ -305,6 +305,7 @@ class GridPerspective extends React.Component<Props, State> {handleGridCellClick = (event, fsEntry: FileSystemEntry) => {const { selectedEntries } = this.props;+ const selectHelperKey = AppConfig.isMacLike ? event.metaKey : event.ctrlKey;if (event.shiftKey) {let lastSelectedIndex = this.props.directoryContent.findIndex(entry => entry.path === this.props.lastSelectedEntryPath);const currentSelectedIndex = this.props.directoryContent.findIndex(entry => entry.path === fsEntry.path);@@ -325,7 +326,7 @@ class GridPerspective extends React.Component<Props, State> {this.props.setSelectedEntries(entriesToSelect);this.setState(this.computeFileOperationsEnabled);- } else if (event.ctrlKey) {+ } else if (selectHelperKey) {if (selectedEntries &&selectedEntries.some(entry => entry.path === fsEntry.path)