This commit is contained in:
Бондарев Иван 2017-11-20 21:11:08 +01:00
parent 74476b5cb0
commit 104955a75d
2 changed files with 14 additions and 2 deletions

View file

@ -228,9 +228,9 @@ namespace VisualPascalABC
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
this.ResumeLayout(false);
this.outputTextBox.KeyUp += OutputTextBox_KeyUp;
this.InputTextBox.KeyUp += InputTextBox_KeyUp;
}
#endregion
private System.Windows.Forms.Panel panel2;

View file

@ -37,6 +37,18 @@ namespace VisualPascalABC
}
private void OutputTextBox_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
{
if (e.Control && e.KeyCode == Keys.C)
outputTextBox.Copy();
}
private void InputTextBox_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
{
if (e.Control && e.KeyCode == Keys.C)
InputTextBox.Copy();
}
private void button1_Click(object sender, EventArgs e)
{
WorkbenchServiceFactory.RunService.SendInputTextToProcess();