Skip to content

Add deep select: Ctrl+Click layers on Mac, Linux, Windows - #48

Open
Dukeabaddon wants to merge 3 commits into
breschio:mainfrom
Dukeabaddon:feature/ctrl-deep-select
Open

Add deep select: Ctrl+Click layers on Mac, Linux, Windows#48
Dukeabaddon wants to merge 3 commits into
breschio:mainfrom
Dukeabaddon:feature/ctrl-deep-select

Conversation

@Dukeabaddon

@Dukeabaddon Dukeabaddon commented Jun 28, 2026

Copy link
Copy Markdown

Summary

  • Ctrl+Click drills one layer deeper through stacked elements (Figma-style) in comment mode
  • Works on Windows, macOS, and Linux — Control key only (not Cmd)
  • macOS fix: track Control held-state + handle contextmenu (OS remaps Ctrl+Click / drops ctrlKey)
  • Plain click still opens the comment box on the highlighted layer

Test plan

  • Load unpacked chrome-extension, open nested UI (e.g. demo)
  • Press C → hover shows blue highlight
  • Hold Control + click → orange highlight / layer badge, no comment box
  • Click without Control → comment box opens
  • Verify on Mac (trackpad) and Linux/Windows if available
  • npm test — elementPicker + buildInfo pass

Dukeabaddon and others added 3 commits June 28, 2026 17:43
Ctrl+Click drills one layer deeper through stacked elements; plain click opens a comment. Includes stale-build auto-reload, trackpad click fallback, element picker utilities, e2e Playwright tests, and a demo test page.

Co-authored-by: Cursor <cursoragent@cursor.com>
Drop Playwright config, e2e specs, and demo test page from tracked files. Keep extension feature code and Jest unit tests for upstream review.

Co-authored-by: Cursor <cursoragent@cursor.com>
macOS remaps Ctrl+Click and drops ctrlKey; track Control held
so deep select drills stacked layers on all platforms.
@Dukeabaddon Dukeabaddon changed the title Add Ctrl+Click deep select for stacked elements in comment mode Add deep select: Ctrl+Click layers on Mac, Linux, Windows Jul 19, 2026
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