RegisterKeyPress() public method

public RegisterKeyPress ( ConsoleKeyInfo key ) : void
key System.ConsoleKeyInfo
return void
Exemplo n.º 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);
        }
Exemplo n.º 2
0
 private void OnKeyInputReceived(ConsoleKeyInfo info)
 {
     textState.RegisterKeyPress(info);
     blinkState = true;
     blinkTimerHandle.Change(BlinkInterval, BlinkInterval);
 }