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

This commit is contained in:
Guilherme Vieira authored and Julius Marminge committed 2026-04-13 14:40:57 -07:00
1 parent 252ffa05bd
commit bcced492d7
1 file changed
+8
+8
View File
@@ -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 },