Skip to content

Commit d704ed1

Browse files
committed
The graph is now saved to disk when pressing ctrl-s
1 parent 65587d6 commit d704ed1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Assets/com.alelievr.NodeGraphProcessor/Editor/Views/BaseGraphView.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,10 @@ public void Initialize(BaseGraph graph)
696696

697697
// When pressing ctrl-s, we save the graph
698698
EditorSceneManager.sceneSaved += _ => SaveGraphToDisk();
699+
RegisterCallback<KeyDownEvent>(e => {
700+
if (e.keyCode == KeyCode.S && e.actionKey)
701+
SaveGraphToDisk();
702+
});
699703

700704
ClearGraphElements();
701705

0 commit comments

Comments
 (0)