Exemplo n.º 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));
        }
Exemplo n.º 2
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public KeyHookEventArgs(ShortCutKey shortKey)
 {
     ShortCutKey = shortKey;
 }