mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +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)
|
||||
{
|
||||
if (!CheckReadOnly())
|
||||
{
|
||||
bool selectedLine = false;
|
||||
String extra = scope .();
|
||||
|
@ -2018,7 +2016,7 @@ namespace Beefy.widgets
|
|||
String selText = scope String();
|
||||
GetSelectionText(selText);
|
||||
BFApp.sApp.SetClipboardText(selText, extra);
|
||||
if (cut)
|
||||
if ((cut) && (!CheckReadOnly()))
|
||||
{
|
||||
if (selectedLine)
|
||||
{
|
||||
|
@ -2032,7 +2030,6 @@ namespace Beefy.widgets
|
|||
if (selectedLine)
|
||||
mSelection = null;
|
||||
}
|
||||
}
|
||||
|
||||
public void CutText()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue