RegisterKeyPress() public method

public RegisterKeyPress ( ConsoleKeyInfo key ) : void
key System.ConsoleKeyInfo
return void
Example #1
0
        private void OnKeyInputReceived(ConsoleKeyInfo info)
        {
            ConsoleCharacter?prototype = this.Value.Length == 0 ? (ConsoleCharacter?)null : this.Value[this.Value.Length - 1];

            textState.RegisterKeyPress(info, prototype);
            blinkState = true;
            Application.ChangeInterval(blinkTimerHandle, BlinkInterval);
        }
Example #2
0
 private void OnKeyInputReceived(ConsoleKeyInfo info)
 {
     textState.RegisterKeyPress(info);
     blinkState = true;
     blinkTimerHandle.Change(BlinkInterval, BlinkInterval);
 }