示例#1
0
        /// <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));
        }
示例#2
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public KeyHookEventArgs(ShortCutKey shortKey)
 {
     ShortCutKey = shortKey;
 }