Browse Source

Added TODOs

Tig 1 year ago
parent
commit
5e1e673c62
2 changed files with 2 additions and 0 deletions
  1. 1 0
      Terminal.Gui/Views/RadioGroup.cs
  2. 1 0
      Terminal.Gui/Views/StatusBar.cs

+ 1 - 0
Terminal.Gui/Views/RadioGroup.cs

@@ -314,6 +314,7 @@ public override void OnDrawContent (Rectangle viewport)
 /// <inheritdoc/>
 public override bool? OnInvokingKeyBindings (Key keyEvent)
 {
+    // TODO: Use CommandContext
     // This is a bit of a hack. We want to handle the key bindings for the radio group but
     // InvokeKeyBindings doesn't pass any context so we can't tell if the key binding is for
     // the radio group or for one of the radio buttons. So before we call the base class

+ 1 - 0
Terminal.Gui/Views/StatusBar.cs

@@ -218,6 +218,7 @@ public class StatusBar : View
     /// <inheritdoc/>
     public override bool? OnInvokingKeyBindings (Key keyEvent)
     {
+        // TODO: Use CommandContext
         // This is a bit of a hack. We want to handle the key bindings for status bar but
         // InvokeKeyBindings doesn't pass any context so we can't tell which item it is for.
         // So before we call the base class we set SelectedItem appropriately.