mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-26 11:38:02 +02:00
Fixed whitespace copying issue
This commit is contained in:
parent
50cff34fc6
commit
b8340dfdc6
1 changed files with 3 additions and 7 deletions
|
@ -2004,19 +2004,15 @@ namespace Beefy.widgets
|
||||||
{
|
{
|
||||||
String selText = scope String();
|
String selText = scope String();
|
||||||
GetSelectionText(selText);
|
GetSelectionText(selText);
|
||||||
if (!selText.IsWhiteSpace)
|
|
||||||
{
|
|
||||||
BFApp.sApp.SetClipboardText(selText);
|
BFApp.sApp.SetClipboardText(selText);
|
||||||
DeleteSelection();
|
DeleteSelection();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public void CopyText()
|
public void CopyText()
|
||||||
{
|
{
|
||||||
String selText = scope String();
|
String selText = scope String();
|
||||||
GetSelectionText(selText);
|
GetSelectionText(selText);
|
||||||
if (!selText.IsWhiteSpace)
|
|
||||||
BFApp.sApp.SetClipboardText(selText);
|
BFApp.sApp.SetClipboardText(selText);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue