Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ImportedProjects
SVG
Commits
ec2c12ce
Commit
ec2c12ce
authored
Dec 27, 2018
by
H1Gdev
Committed by
mrbean-bremen
Dec 27, 2018
Browse files
Implement Ctrl+A for selection all text.
parent
f0af52cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Samples/SVGViewer/SvgViewer.Designer.cs
View file @
ec2c12ce
...
...
@@ -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
//
...
...
Samples/SVGViewer/SvgViewer.cs
View file @
ec2c12ce
...
...
@@ -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();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment