Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
lkosson committed Apr 14, 2023
1 parent cd63a46 commit 66e511c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 6 deletions.
32 changes: 26 additions & 6 deletions MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ protected override void OnKeyDown(KeyEventArgs e)
else if (e.KeyCode == Keys.F && ModifierKeys == Keys.None) ToggleFPS();
else if (e.KeyCode == Keys.G && ModifierKeys == Keys.None) ToggleGrid();
else if (e.KeyCode == Keys.H && ModifierKeys == Keys.None) canvas.PanZoomViewToFit();
else if (e.KeyCode == Keys.H && ModifierKeys == Keys.Shift) canvas.PanViewToSelection();
else if (e.KeyCode == Keys.I && ModifierKeys == Keys.None) AddNewLine(false);
else if (e.KeyCode == Keys.I && ModifierKeys == Keys.Shift) AddNewLine(true);
else if (e.KeyCode == Keys.S && ModifierKeys == Keys.None) ToggleSnapToGrid();
Expand Down Expand Up @@ -340,5 +341,7 @@ protected override void OnKeyDown(KeyEventArgs e)
private void backgroundImageToolStripMenuItem_Click(object sender, EventArgs e) => AddBackground();
private void textShapeToolStripMenuItem_Click(object sender, EventArgs e) => AddText();
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) => About();
private void panzoomToFitToolStripMenuItem_Click(object sender, EventArgs e) => canvas.PanZoomViewToFit();
private void panViewToSelectionToolStripMenuItem_Click(object sender, EventArgs e) => canvas.PanViewToSelection();
}
}

0 comments on commit 66e511c

Please sign in to comment.