Skip to content

Commit

Permalink
[TestApp] Simplify redo command
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetsait committed Jul 12, 2024
1 parent 8941ded commit 6c7a9a4
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Scintilla.NET.TestApp/FormMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public FormMain()

baseTitle = this.Text;

scintilla.AssignCmdKey(Keys.Control | Keys.Shift | Keys.Z, Command.Redo);

scintilla.LexerName = "cpp";

SetScintillaStyles(scintilla);
Expand Down Expand Up @@ -221,16 +223,6 @@ private void describeKeywordSetsToolStripMenuItem_Click(object sender, EventArgs
scintilla.ReplaceSelection(scintilla.DescribeKeywordSets());
}

private void scintilla_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyData == (Keys.Control | Keys.Shift | Keys.Z))
{
scintilla.Redo();
e.Handled = true;
e.SuppressKeyPress = true;
}
}

private void scintilla_TextChanged(object sender, EventArgs e)
{
AdjustLineNumberMargin(scintilla);
Expand Down

0 comments on commit 6c7a9a4

Please sign in to comment.