mirror of
https://github.com/reactos/reactosdbg.git
synced 2024-11-23 11:49:53 +00:00
check for an open connection before sending data to debugger
svn path=/trunk/tools/reactosdbg/; revision=1004
This commit is contained in:
parent
81aaa6a48a
commit
7235d68e28
@ -69,21 +69,24 @@ namespace RosDBG
|
||||
|
||||
private void RawTrafficText_KeyPress(object sender, KeyPressEventArgs e)
|
||||
{
|
||||
switch ((int)e.KeyChar)
|
||||
if (mConnection.ConnectionMode != DebugConnection.Mode.ClosedMode)
|
||||
{
|
||||
case 8: /* Backspace */
|
||||
if (InputLabel.Text.Length > 0)
|
||||
InputLabel.Text = InputLabel.Text.Substring(0, InputLabel.Text.Length -1);
|
||||
break;
|
||||
case 13: /* Return */
|
||||
InputLabel.Text = "";
|
||||
break;
|
||||
default:
|
||||
InputLabel.Text += e.KeyChar;
|
||||
break;
|
||||
}
|
||||
switch ((int)e.KeyChar)
|
||||
{
|
||||
case 8: /* Backspace */
|
||||
if (InputLabel.Text.Length > 0)
|
||||
InputLabel.Text = InputLabel.Text.Substring(0, InputLabel.Text.Length - 1);
|
||||
break;
|
||||
case 13: /* Return */
|
||||
InputLabel.Text = "";
|
||||
break;
|
||||
default:
|
||||
InputLabel.Text += e.KeyChar;
|
||||
break;
|
||||
}
|
||||
|
||||
mConnection.Debugger.Write("" + e.KeyChar);
|
||||
mConnection.Debugger.Write("" + e.KeyChar);
|
||||
}
|
||||
}
|
||||
|
||||
private void RawTrafficText_MouseUp(object sender, MouseEventArgs e)
|
||||
|
Loading…
Reference in New Issue
Block a user