/// <summary> /// キーイベントを呼び出します。 /// </summary> private void OnKeyEvent(EventHandler <KeyHookEventArgs> handler, Key key) { var shortKey = new ShortCutKey { Key = key, IsShift = (this.shift != 0), IsAlt = (this.alt != 0), IsCtrl = (this.ctrl != 0), }; handler.SafeRaiseEvent(this, new KeyHookEventArgs(shortKey)); }
/// <summary> /// コンストラクタ /// </summary> public KeyHookEventArgs(ShortCutKey shortKey) { ShortCutKey = shortKey; }