DemoKeyStrokeSequence.cs 597 B

123456789101112131415161718
  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. /// Can include special "SetDelay:nnn" commands to change the delay between keys.
  10. /// </summary>
  11. public string [] KeyStrokes { get; set; } = [];
  12. /// <summary>
  13. /// Gets or sets the order in which this sequence should be executed.
  14. /// </summary>
  15. public int Order { get; set; } = 0;
  16. }