Debugging GraphView issue

This commit is contained in:
Tig
2024-08-27 21:42:59 -07:00
parent 5c288b4022
commit ad81e09d42
2 changed files with 5 additions and 9 deletions

View File

@@ -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))

View File

@@ -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);