Skip to content

Copy displayed Android frame to PC clipboard - #23

Draft
ami3go wants to merge 3 commits into
mainfrom
agent/copy-screen-image-clipboard
Draft

Copy displayed Android frame to PC clipboard#23
ami3go wants to merge 3 commits into
mainfrom
agent/copy-screen-image-clipboard

Conversation

@ami3go

@ami3go ami3go commented Aug 19, 2026

Copy link
Copy Markdown
Owner

What changed

  • add a PNG screen-copy helper for the rendered Android canvas
  • keep normal Ctrl+C text-first behavior
  • fall back to copying the current Android frame as PNG when Ctrl+C produces no new Android text selection
  • add Ctrl+Shift+C as an immediate forced image-copy shortcut
  • keep the clipboard panel Copy button text-only
  • add shortcut classification coverage

Why

Gallery and other image-viewer apps do not provide image data through scrcpy's text clipboard path. The existing Ctrl+C write-through could therefore reuse stale Android clipboard text. This change uses the already-rendered browser canvas as the image source instead.

Validation

  • reviewed the branch diff against current main
  • added Node test coverage for smart vs forced-image shortcut classification
  • local npm build/test execution could not be run in this environment because the runtime cannot access GitHub to clone dependencies and GitHub CLI is not installed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant