Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

desktop: add menu item to copy images in editor (#4373)

Muhammad Ali9550350f25e1
diff --git a/apps/desktop/src/utils/menu.ts b/apps/desktop/src/utils/menu.ts
index c7e3213ac..84f3dc25b 100644
--- a/apps/desktop/src/utils/menu.ts
+++ b/apps/desktop/src/utils/menu.ts
@@ -131,6 +131,17 @@ function setupMenu() {
);
}
+ if (params.mediaType === "image")
+ menu.append(
+ new MenuItem({
+ id: "copy-image",
+ label: "Copy Image",
+ click() {
+ globalThis.window?.webContents.copyImageAt(params.x, params.y);
+ }
+ })
+ );
+
if (params.isEditable)
menu.append(
new MenuItem({