From bcced492d7c39555836d00222a6a4f297650fb25 Mon Sep 17 00:00:00 2001 From: Guilherme Vieira <46866023+GuilhermeVieiraDev@users.noreply.github.com> Date: Fri, 10 Apr 2026 23:02:07 +0100 Subject: [PATCH] feat(desktop): add "Copy Image" to right-click context menu (#1052) --- apps/desktop/src/main.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.ts index 310b973458..867878e8ef 100644 --- a/apps/desktop/src/main.ts +++ b/apps/desktop/src/main.ts @@ -1695,6 +1695,14 @@ function createWindow(): BrowserWindow { ); } + if (params.mediaType === "image") { + menuTemplate.push({ + label: "Copy Image", + click: () => window.webContents.copyImageAt(params.x, params.y), + }); + menuTemplate.push({ type: "separator" }); + } + menuTemplate.push( { role: "cut", enabled: params.editFlags.canCut }, { role: "copy", enabled: params.editFlags.canCopy },