Commit ec2c12ce authored by H1Gdev's avatar H1Gdev Committed by mrbean-bremen
Browse files

Implement Ctrl+A for selection all text.

parent f0af52cc
......@@ -84,6 +84,7 @@
this.textBox1.Size = new System.Drawing.Size(307, 446);
this.textBox1.TabIndex = 2;
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown);
//
// SVGViewer
//
......
......@@ -50,6 +50,20 @@ namespace SVGViewer
}
}
private void textBox1_KeyDown(object sender, KeyEventArgs e)
{
try
{
if (e.Control && e.KeyCode == Keys.A)
{
(sender as TextBox).SelectAll();
}
}
catch
{
}
}
private void RenderSvg(SvgDocument svgDoc)
{
//var render = new DebugRenderer();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment