소스 검색

Fixed comment

Tig 1 년 전
부모
커밋
651d4387b2
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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