public override void KeyDown(KeyEventArgs args)
        {
            UpdateZoom();

            if (args == null)
            {
                throw new ArgumentNullException("args");
            }
            if (args.Handled)
            {
                return;
            }

            KeyStateInfo keyStateInfo = new KeyStateInfo(args);

            for (int i = 0; i < this.InputProcessors.Count; i++)
            {
                this.InputProcessors[i].KeyDown(args, keyStateInfo);
                if (args.Handled)
                {
                    ClearCacheData();
                    return;
                }
            }
            ClearCacheData();

            base.KeyDown(args);
        }
Esempio n. 2
0
 public bool Equals(KeyStateInfo value)
 {
     return((this.Control == value.Control) && (this.Alt == value.Alt) && (this.Shift == value.Shift) && (this.Key == value.Key) &&
            (this.Key != Key.None) && (value.Key != Key.None));
 }