Ver Fonte

Fixed comment

Tig há 1 ano atrás
pai
commit
651d4387b2
1 ficheiros alterados com 2 adições e 2 exclusões
  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