IInputBinding.cs 513 B

123456789101112131415161718
  1. namespace Terminal.Gui.Input;
  2. /// <summary>
  3. /// Describes an input binding. Used to bind a set of <see cref="Command"/> objects to a specific input event.
  4. /// </summary>
  5. public interface IInputBinding
  6. {
  7. /// <summary>
  8. /// Gets or sets the commands this input binding will invoke.
  9. /// </summary>
  10. Command [] Commands { get; set; }
  11. /// <summary>
  12. /// Arbitrary context that can be associated with this input binding.
  13. /// </summary>
  14. public object? Data { get; set; }
  15. }