diff --git a/Terminal.Gui/Views/FileDialog.cs b/Terminal.Gui/Views/FileDialog.cs index c5eb48a45..ba45c59d7 100644 --- a/Terminal.Gui/Views/FileDialog.cs +++ b/Terminal.Gui/Views/FileDialog.cs @@ -508,11 +508,7 @@ public class FileDialog : Dialog }; AllowedTypeMenuClicked (0); - _allowedTypeMenuBar.HasFocusChanging += (s, e) => - { - _allowedTypeMenuBar.OpenMenu (0); - }; - + // TODO: Using v1's menu bar here is a hack. Need to upgrade this. _allowedTypeMenuBar.DrawContentComplete += (s, e) => { _allowedTypeMenuBar.Move (e.NewViewport.Width - 1, 0); @@ -531,7 +527,7 @@ public class FileDialog : Dialog // to streamline user experience and allow direct typing of paths // with zero navigation we start with focus in the text box and any // default/current path fully selected and ready to be overwritten - _tbPath.FocusDeepest (NavigationDirection.Forward, null); + _tbPath.SetFocus (); _tbPath.SelectAll (); if (string.IsNullOrEmpty (Title)) diff --git a/UICatalog/Scenarios/GraphViewExample.cs b/UICatalog/Scenarios/GraphViewExample.cs index 2ddb8bd44..8cb528528 100644 --- a/UICatalog/Scenarios/GraphViewExample.cs +++ b/UICatalog/Scenarios/GraphViewExample.cs @@ -161,7 +161,7 @@ public class GraphViewExample : Scenario }; frameRight.Add ( - _about = new() { Width = Dim.Fill (), Height = Dim.Fill () } + _about = new() { Width = Dim.Fill (), Height = Dim.Fill (), ReadOnly = true } ); app.Add (frameRight); @@ -170,8 +170,8 @@ public class GraphViewExample : Scenario new Shortcut [] { new (Key.G.WithCtrl, "Next Graph", () => _graphs [_currentGraph++ % _graphs.Length] ()), - new (Key.CursorUp, "Zoom In", () => Zoom (0.5f)), - new (Key.CursorDown, "Zoom Out", () => Zoom (2f)) + new (Key.PageUp, "Zoom In", () => Zoom (0.5f)), + new (Key.PageDown, "Zoom Out", () => Zoom (2f)) } ); app.Add (statusBar);