Skip to content

Commit c965469

Browse files
committed
now actually fix ctrl + backspace behaviour ; also enter handle
1 parent c1a6d78 commit c965469

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

ProgramManagerVC/FormCreateGroup.Designer.cs

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ProgramManagerVC/FormCreateGroup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ private void TextBoxName_TextChanged(object sender, EventArgs e)
5252
buttonOK.Enabled = !string.IsNullOrEmpty(textBoxName.Text);
5353
}
5454

55-
private void textBoxName_KeyPress(object sender, KeyPressEventArgs e)
55+
private void textBoxName_KeyUp(object sender, KeyEventArgs e)
5656
{
57-
if (e.KeyChar == (char)Keys.Return && !string.IsNullOrEmpty(textBoxName.Text))
57+
if (e.KeyCode == Keys.Return && !string.IsNullOrEmpty(textBoxName.Text))
5858
{
5959
buttonOK.PerformClick();
6060
}

ProgramManagerVC/FormExecute.Designer.cs

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ProgramManagerVC/FormExecute.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ private void TextBoxPath_TextChanged(object sender, EventArgs e)
5454
}
5555
}
5656

57-
private void textBoxPath_KeyPress(object sender, KeyPressEventArgs e)
57+
private void textBoxPath_KeyUp(object sender, KeyEventArgs e)
5858
{
59-
if (e.KeyChar == (char)Keys.Return && !String.IsNullOrEmpty(textBoxPath.Text))
59+
if (e.KeyCode == Keys.Return && !String.IsNullOrEmpty(textBoxPath.Text))
6060
{
6161
button1.PerformClick();
6262
}

0 commit comments

Comments
 (0)