From 92c9414050fe1943992a66829a5893fd3050902e Mon Sep 17 00:00:00 2001 From: Tig Date: Fri, 30 Aug 2024 13:09:13 -0600 Subject: [PATCH] popover refinement --- Terminal.Gui/Views/Wizard/WizardStep.cs | 8 ++++++-- UICatalog/Scenarios/Wizards.cs | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Terminal.Gui/Views/Wizard/WizardStep.cs b/Terminal.Gui/Views/Wizard/WizardStep.cs index f6ebac473..13ccc5255 100644 --- a/Terminal.Gui/Views/Wizard/WizardStep.cs +++ b/Terminal.Gui/Views/Wizard/WizardStep.cs @@ -13,7 +13,7 @@ /// the step is active; see also: . To enable or disable a step from being shown to the /// user, set . /// -public class WizardStep : FrameView +public class WizardStep : View { ///// ///// The title of the . @@ -36,7 +36,7 @@ public class WizardStep : FrameView //private string title = string.Empty; // The contentView works like the ContentView in FrameView. - private readonly View _contentView = new () { Id = "WizardContentView" }; + private readonly View _contentView = new () { CanFocus = true, TabStop = TabBehavior.TabStop, Id = "WizardContentView" }; private readonly TextView _helpTextView = new (); /// @@ -44,9 +44,13 @@ public class WizardStep : FrameView /// public WizardStep () { + TabStop = TabBehavior.TabStop; + CanFocus = true; BorderStyle = LineStyle.None; base.Add (_contentView); + _helpTextView.CanFocus = true; + _helpTextView.TabStop = TabBehavior.NoStop; _helpTextView.ReadOnly = true; _helpTextView.WordWrap = true; base.Add (_helpTextView); diff --git a/UICatalog/Scenarios/Wizards.cs b/UICatalog/Scenarios/Wizards.cs index c909ccd40..17c6c2175 100644 --- a/UICatalog/Scenarios/Wizards.cs +++ b/UICatalog/Scenarios/Wizards.cs @@ -213,7 +213,8 @@ public class Wizards : Scenario Y = Pos.Bottom (thirdStepEnabledCeckBox) + 2, Width = Dim.Fill (), Height = 4, - Title = "A Broken Frame (by Depeche Mode)" + Title = "A Broken Frame (by Depeche Mode)", + TabStop = TabBehavior.TabStop }; frame.Add (new TextField { Text = "This is a TextField inside of the frame." }); secondStep.Add (frame);