Skip to content

Commit 0b83081

Browse files
committed
Feature: added ctrl+S shortcut to auto-save the graph
1 parent c457a5b commit 0b83081

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Foreman/Forms/MainForm.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,9 @@ private void AddItemButton_Click(object sender, EventArgs e)
500500

501501
private void MainForm_KeyDown(object sender, KeyEventArgs e)
502502
{
503-
Console.WriteLine(e.KeyValue);
503+
if(e.KeyCode == Keys.S && (Control.ModifierKeys & Keys.Control) == Keys.Control)
504+
if (savefilePath == null || !SaveGraph(savefilePath))
505+
SaveGraphAs();
504506
}
505507

506508
//---------------------------------------------------------Production Graph properties

0 commit comments

Comments
 (0)