diff --git a/app/src/components/FilePreview.js b/app/src/components/FilePreview.js index 2d2b7450..2edcaaab 100644 --- a/app/src/components/FilePreview.js +++ b/app/src/components/FilePreview.js @@ -72,7 +72,13 @@ function OpenInSlicerButton({previewFile}) { {SLICERS.map(s => setSlicerKey(s.key)}/>)} + onClick={(e) => { + // Navigate programmatically so keyboard activation (which may not + // follow the href) still launches the slicer. + if (e) e.preventDefault(); + setSlicerKey(s.key); + window.location.assign(getSlicerURL(previewFile, s.scheme)); + }}/>)}