From 86e0a7adb94db88fbb593f4820ef9b96167d3f78 Mon Sep 17 00:00:00 2001 From: Charlie Kindel Date: Thu, 21 May 2020 20:01:01 -0600 Subject: [PATCH 1/2] rebase --- Terminal.Gui/Core.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Terminal.Gui/Core.cs b/Terminal.Gui/Core.cs index 783a33475..12cd26705 100644 --- a/Terminal.Gui/Core.cs +++ b/Terminal.Gui/Core.cs @@ -1650,7 +1650,7 @@ namespace Terminal.Gui { int l = m ? 1 : 0; ny = Math.Max (y, l); if (SuperView == null || SuperView.GetType() != typeof(Toplevel)) - s = Application.Top.HasStatusBar; + s = Application.Top.StatusBar != null; else s = ((Toplevel)SuperView).StatusBar != null; l = s ? Driver.Rows - 1 : Driver.Rows; From 2c6349a853724abcc5fd8f83698be10acde04bc9 Mon Sep 17 00:00:00 2001 From: Charlie Kindel Date: Thu, 21 May 2020 20:43:47 -0600 Subject: [PATCH 2/2] added docs for KeyEventArgs to get rid of warnings --- Terminal.Gui/Core.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Terminal.Gui/Core.cs b/Terminal.Gui/Core.cs index 12cd26705..2bf0d78f7 100644 --- a/Terminal.Gui/Core.cs +++ b/Terminal.Gui/Core.cs @@ -1065,8 +1065,18 @@ namespace Terminal.Gui { SuperView?.SetFocus (this); } + /// + /// Specifies the event arguments for + /// public class KeyEventEventArgs : EventArgs { + /// + /// Constructs. + /// + /// public KeyEventEventArgs(KeyEvent ke) => KeyEvent = ke; + /// + /// The for the event. + /// public KeyEvent KeyEvent { get; set; } }