mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Fixed copy text in read-only panels
This commit is contained in:
parent
76a8f2d7bb
commit
f008a98105
1 changed files with 24 additions and 27 deletions
|
@ -2002,8 +2002,6 @@ namespace Beefy.widgets
|
||||||
}
|
}
|
||||||
|
|
||||||
void CopyText(bool cut)
|
void CopyText(bool cut)
|
||||||
{
|
|
||||||
if (!CheckReadOnly())
|
|
||||||
{
|
{
|
||||||
bool selectedLine = false;
|
bool selectedLine = false;
|
||||||
String extra = scope .();
|
String extra = scope .();
|
||||||
|
@ -2018,7 +2016,7 @@ namespace Beefy.widgets
|
||||||
String selText = scope String();
|
String selText = scope String();
|
||||||
GetSelectionText(selText);
|
GetSelectionText(selText);
|
||||||
BFApp.sApp.SetClipboardText(selText, extra);
|
BFApp.sApp.SetClipboardText(selText, extra);
|
||||||
if (cut)
|
if ((cut) && (!CheckReadOnly()))
|
||||||
{
|
{
|
||||||
if (selectedLine)
|
if (selectedLine)
|
||||||
{
|
{
|
||||||
|
@ -2032,7 +2030,6 @@ namespace Beefy.widgets
|
||||||
if (selectedLine)
|
if (selectedLine)
|
||||||
mSelection = null;
|
mSelection = null;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public void CutText()
|
public void CutText()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue