From 3b42ce9f8825e2aaa704802757be65f04fe352e0 Mon Sep 17 00:00:00 2001 From: Nettika Date: Thu, 29 Jan 2026 01:29:25 -0800 Subject: [PATCH] Implement selection shortcut keys --- TODO.md | 6 ++-- src/App.vue | 26 +++++++++++++++-- src/stores/scene.spec.ts | 63 ++++++++++++++++++++++++++++++++++++++++ src/stores/scene.ts | 26 +++++++++++++++++ 4 files changed, 116 insertions(+), 5 deletions(-) diff --git a/TODO.md b/TODO.md index eaee38e68..b26c925a5 100644 --- a/TODO.md +++ b/TODO.md @@ -90,9 +90,9 @@ A step-by-step checklist for porting MatterControl's design features to a Vue + - [x] Implement click-to-select single object - [x] Implement click-on-empty to deselect - [x] Add `selectedObjects` array to Pinia store -- [ ] Implement Shift+click for multi-select -- [ ] Implement Ctrl+click to toggle selection -- [ ] Add "Select All" (Ctrl+A) shortcut +- [x] Implement Shift+click for multi-select +- [x] Implement Ctrl+click to toggle selection +- [x] Add "Select All" (Ctrl+A) shortcut ### Selection Visualization - [ ] Add selection outline effect (OutlinePass or custom) diff --git a/src/App.vue b/src/App.vue index 6d0f0b101..a55fe55e5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,17 +1,39 @@