diff --git a/Terminal.Gui/View/View.Keyboard.cs b/Terminal.Gui/View/View.Keyboard.cs index 10f1f97df..1ebc77df0 100644 --- a/Terminal.Gui/View/View.Keyboard.cs +++ b/Terminal.Gui/View/View.Keyboard.cs @@ -73,7 +73,7 @@ public partial class View // Keyboard APIs /// If the hot key is changed, the event is fired. /// Set to to disable the hot key. /// - public virtual Key HotKey + public Key HotKey { get => _hotKey; set @@ -684,8 +684,6 @@ public partial class View // Keyboard APIs /// protected bool? InvokeCommands (Key key, KeyBindingScope scope) { - bool? toReturn = null; - if (!KeyBindings.TryGet (key, scope, out KeyBinding binding)) { return null; diff --git a/Terminal.Gui/View/View.Layout.cs b/Terminal.Gui/View/View.Layout.cs index 2d8fdfeda..318b5c993 100644 --- a/Terminal.Gui/View/View.Layout.cs +++ b/Terminal.Gui/View/View.Layout.cs @@ -28,7 +28,6 @@ public partial class View // Layout APIs /// The target y location. /// The new x location that will ensure will be fully visible. /// The new y location that will ensure will be fully visible. - /// The new top most statusBar /// /// Either (if does not have a Super View) or /// 's SuperView. This can be used to ensure LayoutSubviews is called on the correct View. diff --git a/Terminal.Gui/Views/ListView.cs b/Terminal.Gui/Views/ListView.cs index f7e65f843..0a768584a 100644 --- a/Terminal.Gui/Views/ListView.cs +++ b/Terminal.Gui/Views/ListView.cs @@ -806,7 +806,7 @@ public class ListView : View, IDesignable protected override bool OnKeyDown (Key a) { // Enable user to find & select an item by typing text - if (CollectionNavigatorBase.IsCompatibleKey (a) && (!AllowsMarking && a == Key.Space)) + if (CollectionNavigatorBase.IsCompatibleKey (a) || (!AllowsMarking && a == Key.Space)) { int? newItem = KeystrokeNavigator?.GetNextMatchingItem (SelectedItem, (char)a); diff --git a/UICatalog/Scenarios/Keys.cs b/UICatalog/Scenarios/Keys.cs index 7851d342d..e758af366 100644 --- a/UICatalog/Scenarios/Keys.cs +++ b/UICatalog/Scenarios/Keys.cs @@ -94,10 +94,7 @@ public class Keys : Scenario edit.KeyDownNotHandled += (s, a) => { - if (edit.KeyBindings.TryGet (a, out KeyBinding binding)) - { - keyDownNotHandledList.Add ($"{a}: {string.Join (",", binding.Commands)}"); - } + keyDownNotHandledList.Add ($"{a}"); }; // KeyDown