Browse Source

Fixed whitespace copying issue

Brian Fiete 5 năm trước cách đây
mục cha
commit
b8340dfdc6
1 tập tin đã thay đổi với 3 bổ sung7 xóa
  1. 3 7
      BeefLibs/Beefy2D/src/widgets/EditWidget.bf

+ 3 - 7
BeefLibs/Beefy2D/src/widgets/EditWidget.bf

@@ -2004,11 +2004,8 @@ namespace Beefy.widgets
 			{
 				String selText = scope String();
 				GetSelectionText(selText);
-				if (!selText.IsWhiteSpace)
-				{
-			        BFApp.sApp.SetClipboardText(selText);
-			        DeleteSelection();
-				}
+		        BFApp.sApp.SetClipboardText(selText);
+		        DeleteSelection();
 			}
 		}
 
@@ -2016,8 +2013,7 @@ namespace Beefy.widgets
 		{
 			String selText = scope String();
 			GetSelectionText(selText);
-			if (!selText.IsWhiteSpace)
-				BFApp.sApp.SetClipboardText(selText);
+			BFApp.sApp.SetClipboardText(selText);
 		}
 
 		public void PasteText()