Skip to content

Commit 4d1f2db

Browse files
committed
Extend EventArgs, addresses CA1009
1 parent 7a8e57d commit 4d1f2db

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Rubberduck.VBEEditor/Events/KeyPressEventArgs.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Rubberduck.VBEditor.Events
66
{
7-
public class KeyPressEventArgs
7+
public class KeyPressEventArgs : EventArgs
88
{
99
public KeyPressEventArgs(IntPtr hwnd, IntPtr wParam, IntPtr lParam, bool keydown = false)
1010
{
@@ -30,8 +30,7 @@ public KeyPressEventArgs(IntPtr hwnd, IntPtr wParam, IntPtr lParam, bool keydown
3030
}
3131
}
3232
else
33-
{
34-
33+
{
3534
Character = (char)wParam;
3635
}
3736
}

0 commit comments

Comments
 (0)