Skip to content

Commit

Permalink
为撤销和重做按钮添加快捷键
Browse files Browse the repository at this point in the history
  • Loading branch information
h82258652 committed Aug 4, 2013
1 parent 5bafdcf commit 579fac6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.

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

Original file line number Diff line number Diff line change
Expand Up @@ -399,5 +399,20 @@ private void btnSetting_Click(object sender, EventArgs e)
this.TopMost = true;
}
}

private void EditDialogBox_KeyDown(object sender, KeyEventArgs e)
{
if (e.Control == true)// 按下Ctrl键
{
if (e.KeyCode == Keys.Z)// 按下Z键
{
btnUndo.PerformClick();
}
if (e.KeyCode == Keys.Y)// 按下Y键
{
btnRedo.PerformClick();
}
}
}
}
}

0 comments on commit 579fac6

Please sign in to comment.