Skip to content

Commit fd0dfcb

Browse files
committed
Node-Graph-Modifier-Hints
1 parent ba361cd commit fd0dfcb

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

editor/src/messages/portfolio/document/node_graph/node_graph_message_handler.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2785,11 +2785,22 @@ impl NodeGraphMessageHandler {
27852785
let dragging_box_selection = self.box_selection_start.is_some_and(|(_, box_selection_dragged)| box_selection_dragged);
27862786

27872787
// Cancel the ongoing action
2788-
if wiring || dragging_nodes || dragging_box_selection {
2788+
if wiring || dragging_nodes {
27892789
HintData(vec![HintGroup(vec![HintInfo::mouse(MouseMotion::Rmb, ""), HintInfo::keys([Key::Escape], "Cancel").prepend_slash()])]).send_layout(responses);
27902790
return;
27912791
}
27922792

2793+
if dragging_box_selection {
2794+
HintData(vec![HintGroup(vec![
2795+
HintInfo::keys([Key::Escape], "Cancel"),
2796+
HintInfo::keys([Key::Shift], "Extend"),
2797+
HintInfo::keys([Key::Alt], "Subtract"),
2798+
HintInfo::keys([Key::Control], "Exclude Layers"),
2799+
])])
2800+
.send_layout(responses);
2801+
return;
2802+
}
2803+
27932804
// Default hints for all other states
27942805
let mut hint_data = HintData(vec![
27952806
HintGroup(vec![HintInfo::mouse(MouseMotion::Rmb, "Add Node")]),

0 commit comments

Comments
 (0)