feat(select): invert selection from the right-click menu

Add an Invert Selection entry to the selection context menu (below
Select Similar): it replaces the current selection with every other
selectable object in the active layout. Candidates come from the visible
wire set, so objects on off/frozen layers stay excluded.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Hakan SevenandClaude Opus 4.8 committed 2026-06-20 21:31:05 +03:00
1 parent e562738d9e
commit fd15dd0aac
4 files changed
+38

No files matched your search

+3
View File
@@ -1289,6 +1289,9 @@ pub enum Message {
/// Extend the current selection with every entity in the active
/// layout that matches a selected entity by (type, layer).
SelectSimilar,
/// Replace the current selection with every other selectable object in
/// the active layout (the complement of what's selected now).
InvertSelection,
/// Keyboard modifier state changed — tracks whether Shift is held so the
/// pick path can do subtractive (Shift+click) selection.
SetShiftDown(bool),