This commit is contained in:
@@ -1466,29 +1466,29 @@ namespace Volian.Controls.Library
|
||||
IsControlChar = true;
|
||||
switch (e.KeyCode)
|
||||
{
|
||||
case Keys.X: //ctrl-X
|
||||
case Keys.C: //ctrl-C
|
||||
// handle the clipboard copy and cut when a Transition or RO is selected
|
||||
// For now, we are coping/cutting just the displayed text to the clipboard (like 16-bit VE-PROMS)
|
||||
Clipboard.SetText(GetSelectedDisplayableText());
|
||||
e.Handled = true;
|
||||
e.SuppressKeyPress = true;
|
||||
if (e.KeyCode == Keys.X) // cut to clipboard - delete the selected text
|
||||
HandleDeleteKeyWithSelectedText(e, null);
|
||||
break;
|
||||
case Keys.V:
|
||||
IDataObject iData = Clipboard.GetDataObject();
|
||||
if (!iData.GetDataPresent(DataFormats.Text) && !iData.GetDataPresent(DataFormats.Rtf))
|
||||
{
|
||||
MessageBox.Show("Cannot paste, text has special characters or symbols that will not paste correctly.");
|
||||
}
|
||||
else
|
||||
{
|
||||
Paste();
|
||||
if (SelectionLength == 0) SelectionFont = MyStyleFont.WindowsFont;
|
||||
}
|
||||
e.Handled = true;
|
||||
return;
|
||||
//case Keys.X: //ctrl-X
|
||||
//case Keys.C: //ctrl-C
|
||||
// // handle the clipboard copy and cut when a Transition or RO is selected
|
||||
// // For now, we are coping/cutting just the displayed text to the clipboard (like 16-bit VE-PROMS)
|
||||
// Clipboard.SetText(GetSelectedDisplayableText());
|
||||
// e.Handled = true;
|
||||
// e.SuppressKeyPress = true;
|
||||
// if (e.KeyCode == Keys.X) // cut to clipboard - delete the selected text
|
||||
// HandleDeleteKeyWithSelectedText(e, null);
|
||||
// break;
|
||||
//case Keys.V:
|
||||
// IDataObject iData = Clipboard.GetDataObject();
|
||||
// if (!iData.GetDataPresent(DataFormats.Text) && !iData.GetDataPresent(DataFormats.Rtf))
|
||||
// {
|
||||
// MessageBox.Show("Cannot paste, text has special characters or symbols that will not paste correctly.");
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// Paste();
|
||||
// if (SelectionLength == 0) SelectionFont = MyStyleFont.WindowsFont;
|
||||
// }
|
||||
// e.Handled = true;
|
||||
// return;
|
||||
case Keys.Home:
|
||||
StepRTB_HomeEndPressed(e);
|
||||
e.Handled = true;
|
||||
|
Reference in New Issue
Block a user