Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix shift key on search results (#1958)

Stanimirc5b384e23a16
diff --git a/app/perspectives/grid-perspective/components/MainContainer.tsx b/app/perspectives/grid-perspective/components/MainContainer.tsx
index 2fc06ae1a..4298df2de 100644
--- a/app/perspectives/grid-perspective/components/MainContainer.tsx
+++ b/app/perspectives/grid-perspective/components/MainContainer.tsx
@@ -846,7 +846,11 @@ function GridPerspective(props: Props) {
setSelectedEntries={props.setSelectedEntries}
singleClickAction={singleClickAction.current}
currentLocation={props.currentLocation}
- directoryContent={props.directoryContent}
+ directoryContent={
+ props.lastSearchTimestamp
+ ? GlobalSearch.getInstance().getResults()
+ : props.directoryContent
+ }
supportedFileTypes={props.supportedFileTypes}
openFsEntry={props.openFsEntry}
openFileNatively={props.openFileNatively}
diff --git a/app/perspectives/list/components/MainContainer.tsx b/app/perspectives/list/components/MainContainer.tsx
index b1aaf7253..36d3caf90 100644
--- a/app/perspectives/list/components/MainContainer.tsx
+++ b/app/perspectives/list/components/MainContainer.tsx
@@ -843,7 +843,11 @@ function GridPerspective(props: Props) {
setSelectedEntries={props.setSelectedEntries}
singleClickAction={singleClickAction.current}
currentLocation={props.currentLocation}
- directoryContent={props.directoryContent}
+ directoryContent={
+ props.lastSearchTimestamp
+ ? GlobalSearch.getInstance().getResults()
+ : props.directoryContent
+ }
supportedFileTypes={props.supportedFileTypes}
openFsEntry={props.openFsEntry}
openFileNatively={props.openFileNatively}