[REACTOSDBG]

- Stop the enter key from making an annoying pinging noise every time you enter a command.

svn path=/trunk/reactosdbg/; revision=1278
This commit is contained in:
Ged Murphy 2011-04-02 13:40:03 +00:00
parent 24622bf93f
commit 832254aa43
2 changed files with 9 additions and 1 deletions

View File

@ -170,12 +170,14 @@
//
// RawTrafficTextBox
//
this.RawTrafficTextBox.AcceptsReturn = true;
this.RawTrafficTextBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.RawTrafficTextBox.Location = new System.Drawing.Point(0, 0);
this.RawTrafficTextBox.Name = "RawTrafficTextBox";
this.RawTrafficTextBox.Size = new System.Drawing.Size(385, 20);
this.RawTrafficTextBox.TabIndex = 0;
this.RawTrafficTextBox.Tag = "0";
this.RawTrafficTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.RawTrafficTextBox_KeyPress);
this.RawTrafficTextBox.KeyUp += new System.Windows.Forms.KeyEventHandler(this.RawTrafficTextBox_KeyUp);
//
// RawTraffic

View File

@ -212,6 +212,13 @@ namespace RosDBG
#endregion
#region events
private void RawTrafficTextBox_KeyPress(object sender, KeyPressEventArgs e)
{
// Stop the enter key from 'pinging'
if (RawTrafficTextBox.Text.Length > 0 && e.KeyChar == 13)
e.Handled = true;
}
private void RawTrafficTextBox_KeyUp(object sender, KeyEventArgs e)
{
switch (e.KeyCode)
@ -361,6 +368,5 @@ namespace RosDBG
{
RawTrafficText.Clear();
}
}
}