TabBehavior.cs 1.0 KB

123456789101112131415161718192021222324252627282930
  1. namespace Terminal.Gui;
  2. /// <summary>
  3. /// Describes how <see cref="View.TabStop"/> behaves. A TabStop is a stop-point for keyboard navigation between Views.
  4. /// </summary>
  5. public enum TabBehavior
  6. {
  7. /// <summary>
  8. /// The View will not be a stop-poknt for keyboard-based navigation.
  9. /// </summary>
  10. /// <remarks>
  11. /// <para>
  12. /// This flag has no impact on whether the view can be focused via means other than the keyboard. Use
  13. /// <see cref="View.CanFocus"/>
  14. /// to control whether a View can focus or not.
  15. /// </para>
  16. /// </remarks>
  17. NoStop = 0,
  18. /// <summary>
  19. /// The View will be a stop-point for keybaord-based navigation across Views (e.g. if the user presses `Tab`).
  20. /// </summary>
  21. TabStop = 1,
  22. /// <summary>
  23. /// The View will be a stop-point for keyboard-based navigation across groups (e.g. if the user presses
  24. /// <see cref="Application.NextTabGroupKey"/> (`Ctrl-PageDown`).
  25. /// </summary>
  26. TabGroup = 2
  27. }