mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 09:47:58 +01:00
Debugging GraphView issue
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user