Browse Source

Fixed comment

Tig 1 year ago
parent
commit
651d4387b2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Terminal.Gui/Views/TextField.cs

+ 2 - 2
Terminal.Gui/Views/TextField.cs

@@ -334,8 +334,8 @@ public class TextField : View
                     }
                    );
 
-        // OnAccept returns true if the event is canceled.
-        // By Default pressing ENTER should be ignored (Invoke(Command.Accept) should return false).
+        // By Default pressing ENTER should be ignored (OnAccept will return false or null). Only cancel if the
+        // event was fired and set Cancel = true.
         AddCommand (Command.Accept, () => OnAccept () == false);
 
         // Default keybindings for this view