Skip to content

Commit aff16ff

Browse files
jsjgdhKeavon
authored andcommitted
Node-Graph-Modifier-Hints
1 parent b5b896f commit aff16ff

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

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
@@ -2790,11 +2790,22 @@ impl NodeGraphMessageHandler {
27902790
let dragging_box_selection = self.box_selection_start.is_some_and(|(_, box_selection_dragged)| box_selection_dragged);
27912791

27922792
// Cancel the ongoing action
2793-
if wiring || dragging_nodes || dragging_box_selection {
2793+
if wiring || dragging_nodes {
27942794
HintData(vec![HintGroup(vec![HintInfo::mouse(MouseMotion::Rmb, ""), HintInfo::keys([Key::Escape], "Cancel").prepend_slash()])]).send_layout(responses);
27952795
return;
27962796
}
27972797

2798+
if dragging_box_selection {
2799+
HintData(vec![HintGroup(vec![
2800+
HintInfo::keys([Key::Escape], "Cancel"),
2801+
HintInfo::keys([Key::Shift], "Extend"),
2802+
HintInfo::keys([Key::Alt], "Subtract"),
2803+
HintInfo::keys([Key::Control], "Exclude Layers"),
2804+
])])
2805+
.send_layout(responses);
2806+
return;
2807+
}
2808+
27982809
// Default hints for all other states
27992810
let mut hint_data = HintData(vec![
28002811
HintGroup(vec![HintInfo::mouse(MouseMotion::Rmb, "Add Node")]),

0 commit comments

Comments
 (0)