authorgravatar for 46866023+GuilhermeVieiraDev@users.noreply.github.comGuilherme Vieira <46866023+GuilhermeVieiraDev@users.noreply.github.com> 2026-04-10 23:02:07+01:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-04-10 15:02:07-07:00
log12c3af7821b487878fad67a10b6e7ea980efb214
tree2a6b06fa79425183e354388a6383d7d893f66e94
parente2316814da7463b5332054f463f71020f1c50c08
signature Signed by PGP key B5690EEEBB952194

feat(desktop): add "Copy Image" to right-click context menu (#1052)


1 files changed, 8 insertions(+), 0 deletions(-)

apps/desktop/src/main.ts+8
...@@ -1695,6 +1695,14 @@ function createWindow(): BrowserWindow {...@@ -1695,6 +1695,14 @@ function createWindow(): BrowserWindow {
1695 );1695 );
1696 }1696 }
16971697
1698 if (params.mediaType === "image") {
1699 menuTemplate.push({
1700 label: "Copy Image",
1701 click: () => window.webContents.copyImageAt(params.x, params.y),
1702 });
1703 menuTemplate.push({ type: "separator" });
1704 }
1705
1698 menuTemplate.push(1706 menuTemplate.push(
1699 { role: "cut", enabled: params.editFlags.canCut },1707 { role: "cut", enabled: params.editFlags.canCut },
1700 { role: "copy", enabled: params.editFlags.canCopy },1708 { role: "copy", enabled: params.editFlags.canCopy },