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:
prathmesh703
2025-03-01 03:43:24 +00:00
committed by GitHub
co-authored by doxe-2611 Keavon Chambers
parent b6cdcba9e8
commit 17215ea66f
4 changed files with 35 additions and 0 deletions
@@ -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()),