Skip to content

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

Open
GuilhermeVieiraDev wants to merge 1 commit intopingdotgg:mainfrom
GuilhermeVieiraDev:fix/copy-image-context-menu
Open

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

Conversation

@GuilhermeVieiraDev
Copy link
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.

@coderabbitai
Copy link

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: cef7894e-cc1f-4907-9b31-9e9696142478

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
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

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.

Tip

CodeRabbit can scan for known vulnerabilities in your dependencies using OSV Scanner.

OSV Scanner will automatically detect and report security vulnerabilities in your project's dependencies. No additional configuration is required.

@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
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.

1 participant