add KeyboardHook

This commit is contained in:
NaBian committed 2019-05-22 23:32:12 +08:00
1 parent 084cd55af6
commit 983b2e8c02
7 files changed
+81 -5

No files matched your search

@@ -0,0 +1,15 @@
using System;
using System.Windows.Input;
namespace HandyControl.Data
{
internal class KeyboardHookEventArgs : EventArgs
{
public Key Key { get; }
public KeyboardHookEventArgs(int virtualKey)
{
Key = KeyInterop.KeyFromVirtualKey(virtualKey);
}
}
}