Skip to content

Add Ctrl+Click deep select for stacked elements in comment mode#48

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

Add Ctrl+Click deep select for stacked elements in comment mode#48
Dukeabaddon wants to merge 2 commits into
breschio:mainfrom
Dukeabaddon:feature/ctrl-deep-select

Conversation

@Dukeabaddon

Copy link
Copy Markdown

Summary

  • Ctrl+Click drills one layer deeper through stacked DOM elements (Figma-style) while in comment mode
  • Plain click still opens the comment box on the highlighted element
  • Trackpad tap supported via click-event fallback (not just pointerdown)
  • Auto-reloads page once when extension updates so stale content scripts cannot silently block the new behavior

Test plan

  • Load unpacked extension, open any page with nested elements
  • Press C with Drawbridge sidebar visible
  • Hover → blue highlight on top element
  • Ctrl+Click → orange highlight, layer badge, no comment box
  • Click (no Ctrl) → comment box opens
  • Run npm test — elementPicker, buildInfo, background tests pass

Dukeabaddon and others added 2 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>
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