mirror of
https://github.com/reactos/reactosdbg.git
synced 2024-11-23 03:39:43 +00:00
[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:
parent
24622bf93f
commit
832254aa43
2
RosDBG/Dockable Objects/RawTraffic.Designer.cs
generated
2
RosDBG/Dockable Objects/RawTraffic.Designer.cs
generated
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user