mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-03 09:28:12 +08:00
Add the Select Parent command (#2329)
* Select-Parent-Layer-Button * check fail fixed * check fail * Add hotkey, fix top-level layers getting deselected, code review --------- Co-authored-by: doxe-2611 <kolpe2611@gmail.com> Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
doxe-2611
Keavon Chambers
parent
b6cdcba9e8
commit
17215ea66f
@@ -260,6 +260,13 @@ impl LayoutHolder for MenuBarMessageHandler {
|
||||
disabled: no_active_document || !has_selected_nodes,
|
||||
..MenuBarEntry::default()
|
||||
},
|
||||
MenuBarEntry {
|
||||
label: "Select Parent".into(),
|
||||
shortcut: action_keys!(DocumentMessageDiscriminant::SelectParentLayer),
|
||||
action: MenuBarEntry::create_action(|_| DocumentMessage::SelectParentLayer.into()),
|
||||
disabled: no_active_document || !has_selected_nodes,
|
||||
..MenuBarEntry::default()
|
||||
},
|
||||
MenuBarEntry {
|
||||
label: "Previous Selection".into(),
|
||||
icon: Some("HistoryUndo".into()),
|
||||
|
||||
Reference in New Issue
Block a user