CK.Keyboard.Key.Push C# (CSharp) Method

Push() public method

public Push ( ) : void
return void
        public void Push()
        {
            //if( _repeatCount >= 0 )
            //{
            //This case can happen without any "bugs" as running on a slow computer or clicking with both the mouse and the trackpad can
            //send a push/push -> release/release sequence.
            //Throwing an exception here is not the right answer.
            //The repeatcount seems therefor rather useless.
            //throw new InvalidOperationException( R.KeyPushWhenDown );
            //}
            //Debug.Assert( _repeatCount == -1, "Since Push has not been called yet, repeatCount must be -1." );
            _repeatCount = 0;
            KeyInteractionEventArgs e = new KeyInteractionEventArgs( this, Current.OnKeyDownCommands, KeyInteractionEventType.Down );
            EventHandler<KeyInteractionEventArgs> keyDown = KeyDown;
            if( keyDown != null ) keyDown( this, e );
            Keyboard.OnKeyDown( e );
        }