Skip to content

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

Merged
juliusmarminge merged 1 commit intopingdotgg:mainfrom
GuilhermeVieiraDev:fix/copy-image-context-menu
Apr 10, 2026
Merged

feat(desktop): add "Copy Image" to right-click context menu#1052
juliusmarminge merged 1 commit intopingdotgg:mainfrom
GuilhermeVieiraDev:fix/copy-image-context-menu

Conversation

@GuilhermeVieiraDev
Copy link
Copy Markdown
Contributor

@GuilhermeVieiraDev GuilhermeVieiraDev commented Mar 13, 2026

What Changed

Added a "Copy Image" option to the Electron right-click context menu when clicking on an image.

Why

The Electron context menu only showed Cut/Copy/Paste/Select All. There was no way to copy an image from the app, whether from the expanded image preview or the smaller image thumbnails.

UI Changes

Before:
On expanded image preview:
2026-03-13_21-54

On image thumbnail:
2026-03-13_21-56

After:
On expanded image preview:
2026-03-13_21-55

On image thumbnail:
image

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Note

Add "Copy Image" to the desktop right-click context menu

In main.ts, the context-menu event handler in createWindow now injects a "Copy Image" menu item when right-clicking on an image. Selecting it calls webContents.copyImageAt(x, y) to copy the image to the clipboard.

Macroscope summarized 5ae725c.


Note

Low Risk
Low risk UI-only change in the desktop context menu that calls Electron’s built-in webContents.copyImageAt; no auth or data processing changes.

Overview
Adds a "Copy Image" item to the desktop Electron webContents right-click context menu when the clicked element is an image (params.mediaType === "image"). Selecting it copies the image under the cursor via webContents.copyImageAt(x, y), inserted before the standard cut/copy/paste entries.

Reviewed by Cursor Bugbot for commit 1e8b583. Bugbot is set up for automated code reviews on this repo. Configure here.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 13, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 0d977f87-0c09-4934-b100-38fe28a01cb2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added size:XS 0-9 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list. labels Mar 13, 2026
@UtkarshUsername
Copy link
Copy Markdown
Contributor

Nice! This would be useful

@GuilhermeVieiraDev GuilhermeVieiraDev changed the title fix(desktop): add "Copy Image" to right-click context menu feat(desktop): add "Copy Image" to right-click context menu Apr 10, 2026
@GuilhermeVieiraDev GuilhermeVieiraDev force-pushed the fix/copy-image-context-menu branch from 5ae725c to 1e8b583 Compare April 10, 2026 19:11
@juliusmarminge juliusmarminge merged commit 12c3af7 into pingdotgg:main Apr 10, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants