Browse Source

Fix FileDialog panels to allow focus on child views

Co-authored-by: tig <[email protected]>
copilot-swe-agent[bot] 2 months ago
parent
commit
932e3f3250
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Terminal.Gui/Views/FileDialogs/FileDialog.cs

+ 2 - 2
Terminal.Gui/Views/FileDialogs/FileDialog.cs

@@ -159,7 +159,7 @@ public class FileDialog : Dialog, IDesignable
             Width = 30,
             Width = 30,
             Height = Dim.Fill (Dim.Func (_ => IsInitialized ? _btnOk.Frame.Height : 1)),
             Height = Dim.Fill (Dim.Func (_ => IsInitialized ? _btnOk.Frame.Height : 1)),
             Visible = false,
             Visible = false,
-            CanFocus = false,
+            CanFocus = true,
             TabStop = TabBehavior.NoStop,
             TabStop = TabBehavior.NoStop,
             Arrangement = ViewArrangement.Resizable
             Arrangement = ViewArrangement.Resizable
         };
         };
@@ -172,7 +172,7 @@ public class FileDialog : Dialog, IDesignable
             Y = Pos.Bottom (_btnBack),
             Y = Pos.Bottom (_btnBack),
             Width = Dim.Fill (),
             Width = Dim.Fill (),
             Height = Dim.Fill (Dim.Func (_ => IsInitialized ? _btnOk.Frame.Height : 1)),
             Height = Dim.Fill (Dim.Func (_ => IsInitialized ? _btnOk.Frame.Height : 1)),
-            CanFocus = false,
+            CanFocus = true,
             TabStop = TabBehavior.NoStop
             TabStop = TabBehavior.NoStop
         };
         };