diff --git a/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx b/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx index 9ca779dc3..3714c722a 100644 --- a/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx +++ b/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx @@ -121,6 +121,17 @@ export const EntryItemWrapper: FC< }) }, [entry?.id]) + const handleDoubleClick = useCallback( + (e: MouseEvent) => { + e.preventDefault() + e.stopPropagation() + if (!entry?.url) return + if (!entry?.id) return + window.open(entry?.url, "_blank", "noopener,noreferrer") + }, + [entry?.id, entry?.url], + ) + const handleClick = useCallback( (e: TouchEvent | MouseEvent) => { e.preventDefault() @@ -218,6 +229,7 @@ export const EntryItemWrapper: FC< itemClassName, )} onClick={handleClick} + onDoubleClick={handleDoubleClick} onMouseEnter={handleMouseEnter} onMouseLeave={handleMouseLeave} {...contextMenuProps}