Skip to content

Commit 498b56f

Browse files
committed
Node-Graph-Modifier-Hints
1 parent 4b24302 commit 498b56f

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

28032803
// Cancel the ongoing action
2804-
if wiring || dragging_nodes || dragging_box_selection {
2804+
if wiring || dragging_nodes {
28052805
HintData(vec![HintGroup(vec![HintInfo::mouse(MouseMotion::Rmb, ""), HintInfo::keys([Key::Escape], "Cancel").prepend_slash()])]).send_layout(responses);
28062806
return;
28072807
}
28082808

2809+
if dragging_box_selection {
2810+
HintData(vec![HintGroup(vec![
2811+
HintInfo::keys([Key::Escape], "Cancel"),
2812+
HintInfo::keys([Key::Shift], "Extend"),
2813+
HintInfo::keys([Key::Alt], "Subtract"),
2814+
HintInfo::keys([Key::Control], "Exclude Layers"),
2815+
])])
2816+
.send_layout(responses);
2817+
return;
2818+
}
2819+
28092820
// Default hints for all other states
28102821
let mut hint_data = HintData(vec![
28112822
HintGroup(vec![HintInfo::mouse(MouseMotion::Rmb, "Add Node")]),

0 commit comments

Comments
 (0)