Skip to content

Commit

Permalink
now actually fix ctrl + backspace behaviour ; also enter handle
Browse files Browse the repository at this point in the history
  • Loading branch information
veselcraft committed Jan 20, 2023
1 parent c1a6d78 commit c965469
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion ProgramManagerVC/FormCreateGroup.Designer.cs

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

4 changes: 2 additions & 2 deletions ProgramManagerVC/FormCreateGroup.cs
Expand Up @@ -52,9 +52,9 @@ private void TextBoxName_TextChanged(object sender, EventArgs e)
buttonOK.Enabled = !string.IsNullOrEmpty(textBoxName.Text);
}

private void textBoxName_KeyPress(object sender, KeyPressEventArgs e)
private void textBoxName_KeyUp(object sender, KeyEventArgs e)
{
if (e.KeyChar == (char)Keys.Return && !string.IsNullOrEmpty(textBoxName.Text))
if (e.KeyCode == Keys.Return && !string.IsNullOrEmpty(textBoxName.Text))
{
buttonOK.PerformClick();
}
Expand Down
4 changes: 3 additions & 1 deletion ProgramManagerVC/FormExecute.Designer.cs

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

4 changes: 2 additions & 2 deletions ProgramManagerVC/FormExecute.cs
Expand Up @@ -54,9 +54,9 @@ private void TextBoxPath_TextChanged(object sender, EventArgs e)
}
}

private void textBoxPath_KeyPress(object sender, KeyPressEventArgs e)
private void textBoxPath_KeyUp(object sender, KeyEventArgs e)
{
if (e.KeyChar == (char)Keys.Return && !String.IsNullOrEmpty(textBoxPath.Text))
if (e.KeyCode == Keys.Return && !String.IsNullOrEmpty(textBoxPath.Text))
{
button1.PerformClick();
}
Expand Down

0 comments on commit c965469

Please sign in to comment.