mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-24 17:28:11 +08:00
Add Deepest and Shallowest selection to the Select tool (#1016)
* Single-clicking shape now selects the parent folder * Added Ratio Button for Layer/Group. Task 1 Done * All 3 bullet points been checked.Needs refactoring * Refactored Code + Added descriptive comments * Reduced code, removed comments, moved/renamed enum * Hints now change based on selection behavior * refactored updating hints based on layer behavior * Updated hints and shift click for shallow select * fixed cargo check warnings * shift deselect works. Checking for edge cases * Fixed the first 5 bullet points suggestions. * Fixed double click issue * Double click on shape switches to path tool * updated deepest select and its hints * Reworked logic for single click for shallow select * Fixed CargoCheck warnings + Hypercube suggestions. * Fix append -> push * Break out two functions * Split out big code blocks into functions * Edit hint text * Assorted code quality cleanup * Combine duplicate impl blocks * Add todo for future code cleanup --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
Keavon Chambers
parent
bc9b7c0178
commit
6b85eb9a43
@@ -60,7 +60,7 @@ pub fn default_mapping() -> Mapping {
|
||||
//
|
||||
// SelectToolMessage
|
||||
entry!(PointerMove; refresh_keys=[Control, Shift, Alt], action_dispatch=SelectToolMessage::PointerMove { axis_align: Shift, snap_angle: Control, center: Alt, duplicate: Alt }),
|
||||
entry!(KeyDown(Lmb); action_dispatch=SelectToolMessage::DragStart { add_to_selection: Shift }),
|
||||
entry!(KeyDown(Lmb); action_dispatch=SelectToolMessage::DragStart { add_to_selection: Shift, select_deepest: Accel }),
|
||||
entry!(KeyUp(Lmb); action_dispatch=SelectToolMessage::DragStop { remove_from_selection: Shift }),
|
||||
entry!(KeyDown(Enter); action_dispatch=SelectToolMessage::Enter),
|
||||
entry!(DoubleClick; action_dispatch=SelectToolMessage::EditLayer),
|
||||
|
||||
Reference in New Issue
Block a user