소스 검색

TextView now works properly

Tig 1 년 전
부모
커밋
15fa1abab1
2개의 변경된 파일77개의 추가작업 그리고 419개의 파일을 삭제
  1. 3 1
      Terminal.Gui/Views/TextView.cs
  2. 74 418
      UnitTests/Views/TextViewTests.cs

+ 3 - 1
Terminal.Gui/Views/TextView.cs

@@ -6069,7 +6069,9 @@ public class TextView : View
 
         if (!AllowsReturn || _isReadOnly)
         {
-            return OnAccept ();
+            // By Default pressing ENTER should be ignored (OnAccept will return false or null). Only cancel if the
+            // event was fired and set Cancel = true.
+            return OnAccept () == false;
         }
 
         SetWrapModel ();

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 74 - 418
UnitTests/Views/TextViewTests.cs


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.