RegisterKeyPress() public méthode

public RegisterKeyPress ( ConsoleKeyInfo key ) : void
key System.ConsoleKeyInfo
Résultat void
Exemple #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);
        }
Exemple #2
0
 private void OnKeyInputReceived(ConsoleKeyInfo info)
 {
     textState.RegisterKeyPress(info);
     blinkState = true;
     blinkTimerHandle.Change(BlinkInterval, BlinkInterval);
 }