Skip to content

Commit 9c5a62b

Browse files
adamgerhantKeavon
authored andcommitted
Menu buttons
1 parent 0ba3ede commit 9c5a62b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

editor/src/messages/portfolio/menu_bar/menu_bar_message_handler.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,18 @@ impl LayoutHolder for MenuBarMessageHandler {
189189
disabled: no_active_document,
190190
..MenuBarEntry::default()
191191
},
192+
MenuBarEntry {
193+
label: "Previous Selection".into(),
194+
shortcut: action_keys!(DocumentMessageDiscriminant::SelectionStepBack),
195+
action: MenuBarEntry::create_action(|_| DocumentMessage::SelectionStepBack.into()),
196+
..MenuBarEntry::default()
197+
},
198+
MenuBarEntry {
199+
label: "Next Selection".into(),
200+
shortcut: action_keys!(DocumentMessageDiscriminant::SelectionStepForward),
201+
action: MenuBarEntry::create_action(|_| DocumentMessage::SelectionStepForward.into()),
202+
..MenuBarEntry::default()
203+
},
192204
],
193205
vec![MenuBarEntry {
194206
label: "Delete Selected".into(),

0 commit comments

Comments
 (0)