DemoKeyStrokeSequence.cs 673 B

12345678910111213141516171819202122
  1. namespace Terminal.Gui.Examples;
  2. /// <summary>
  3. /// Represents a sequence of keystrokes to inject during example demonstration or testing.
  4. /// </summary>
  5. public class DemoKeyStrokeSequence
  6. {
  7. /// <summary>
  8. /// Gets or sets the array of keystroke names to inject.
  9. /// </summary>
  10. public string [] KeyStrokes { get; set; } = [];
  11. /// <summary>
  12. /// Gets or sets the delay in milliseconds before injecting these keystrokes.
  13. /// </summary>
  14. public int DelayMs { get; set; } = 0;
  15. /// <summary>
  16. /// Gets or sets the order in which this sequence should be executed.
  17. /// </summary>
  18. public int Order { get; set; } = 0;
  19. }