Skip to content

Commit

Permalink
Copy text, rtf, and html formats, not just rtf. (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdanner committed Jan 19, 2021
1 parent 11e59a7 commit 1112466
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Src/SwqlStudio/QueryTab.cs
Expand Up @@ -200,7 +200,7 @@ internal void CopySelectionToClipboard()
{
if (sciTextEditorControl1.Focused)
{
sciTextEditorControl1.Copy();
sciTextEditorControl1.CopyMenuClick(this, EventArgs.Empty);
}
else if (dataGridView1.Focused)
{
Expand Down
4 changes: 2 additions & 2 deletions Src/SwqlStudio/SciTextEditorControl.cs
Expand Up @@ -156,9 +156,9 @@ private void PasteMenuClick(object sender, EventArgs e)
Paste();
}

private void CopyMenuClick(object sender, EventArgs e)
public void CopyMenuClick(object sender, EventArgs e)
{
Copy(CopyFormat.Rtf);
Copy(CopyFormat.Text | CopyFormat.Rtf | CopyFormat.Html);
}

private void CutMenuClick(object sender, EventArgs e)
Expand Down

0 comments on commit 1112466

Please sign in to comment.