Skip to content

Commit c1400d6

Browse files
authored
Merge pull request #470 from itowhid06/main
feat(context-menu): add "Copy Image to Clipboard" functionality to image context menu
2 parents 006dcf7 + af593d9 commit c1400d6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/app/src/context-menu.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@ export default class ContextMenu extends EventEmitter {
113113
}
114114
},
115115
},
116+
{
117+
id: 'copyImage',
118+
label: 'Copy Image to Clipboard',
119+
click() {
120+
if (webContents) {
121+
webContents.copyImageAt(props.x, props.y);
122+
}
123+
},
124+
},
116125
{
117126
id: 'copyImageUrl',
118127
label: 'Copy Image URL',

0 commit comments

Comments
 (0)