Skip to content

feat: use Cmd+C to trigger grab mode with inline toast feedback - #467

Merged
AmethystLiang merged 1 commit into
mainfrom
use-command-c-to-trigger-grab-mode
Apr 11, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
use-command-c-to-trigger-grab-mode

Conversation

@AmethystLiang

Copy link
Copy Markdown
Contributor

Summary

  • Cmd+C triggers grab mode instead of Cmd+Shift+G — repurposes the natural copy gesture to enter element grab mode in the browser pane. Native Cmd+C still works in text inputs (address bar, etc.).
  • Left-click auto-copies element context to clipboard with an inline toast positioned near the selected element, replacing the global bottom-right toaster for spatially-connected feedback.
  • Right-click shows action dropdown (copy / screenshot) instead of auto-copying, giving users a deliberate path to secondary actions.
  • Context-selected grab result kind threaded through shared types, main process, and renderer to distinguish left-click vs right-click selections.
  • Reliability fixes: createFromBuffer instead of createFromDataURL for clipboard images (fixes silent failures on large data URLs), try/finally for overlay hide/restore during screenshot capture, unmount cleanup for toast timers.

Test plan

  • Open browser pane, press Cmd+C — grab mode activates
  • In grab mode, left-click an element — inline toast shows "Copied" near the element
  • In grab mode, right-click an element — dropdown menu appears with Copy/Screenshot options
  • Focus the address bar, press Cmd+C — native copy works (no grab mode toggle)
  • Press S while in confirming state — screenshot copied to clipboard
  • Verify toast auto-dismisses and grab re-arms for another pick

- Guard Cmd+C handler to skip text inputs (address bar, etc.)
- Wrap capturePage in try/finally to always restore grab overlay
- Clear grab toast timer on component unmount
- Fix lint: add curly braces, remove useless return
@AmethystLiang
AmethystLiang merged commit a6b12e9 into main Apr 11, 2026
1 check passed
@AmethystLiang
AmethystLiang deleted the use-command-c-to-trigger-grab-mode branch April 11, 2026 05:39
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
- Guard Cmd+C handler to skip text inputs (address bar, etc.)
- Wrap capturePage in try/finally to always restore grab overlay
- Clear grab toast timer on component unmount
- Fix lint: add curly braces, remove useless return
Thundernerd added a commit to Thundernerd/orca that referenced this pull request Nov 18, 2026
… of tickets

Each implemented ticket handed over one to three findings in the area it had
just touched, and each of those did the same, so the tracker filled with
narrowing variations on one theme (on Cronk: stablyai#421 → stablyai#430 → stablyai#442/stablyai#443 →
stablyai#448/stablyai#454 → stablyai#460/stablyai#461, and similar chains for closing, query binding and
From Transcript kinds). Some were review points on code still on the
unmerged branch (stablyai#450, stablyai#453) or /code-review judgement calls (stablyai#467).

- The implementing brief, local and cloud, now counts only real bugs and
  gaps as findings. Problems in code the branch adds are fixed in its PR;
  judgement calls, tidy-ups and further passes over freshly reworked code
  are left with a reason in the report instead of handed over.
- The finding check also searches tickets closed in the last two weeks and
  the findings already filed up the "Found while implementing" chain, and
  files nothing for code that exists only on the origin's branch.
- A finding whose title is already recorded on its origin is not filed
  again, which is how stablyai#431 duplicated stablyai#430.
- The filed body no longer repeats "Found while implementing" and the
  triage line when the agent's draft already opens with them.
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