| ... | ... | @@ -1695,6 +1695,14 @@ function createWindow(): BrowserWindow { |
| 1695 | 1695 | ); |
| 1696 | 1696 | } |
| 1697 | 1697 | |
| 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 | 1706 | menuTemplate.push( |
| 1699 | 1707 | { role: "cut", enabled: params.editFlags.canCut }, |
| 1700 | 1708 | { role: "copy", enabled: params.editFlags.canCopy }, |