From dbe9ab7fa50e1047c794d67d9c4a4fd429ebd4db Mon Sep 17 00:00:00 2001 From: Aviel Resnick Date: Tue, 28 Nov 2023 01:33:57 -0500 Subject: [PATCH] added double-click to open --- src/renderer/src/components/SlateCard.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/renderer/src/components/SlateCard.tsx b/src/renderer/src/components/SlateCard.tsx index cbe5bef..8dc59fa 100644 --- a/src/renderer/src/components/SlateCard.tsx +++ b/src/renderer/src/components/SlateCard.tsx @@ -25,10 +25,18 @@ export default function SlateCard( : "bg-cardDefault"; const ref = createRef(); + + const handleDoubleClick = () => { + if (testMode === "doubleclick") { + window.files.openExternally(filePath); + } + }; + return ( {(provided, snapshot) => (