This commit is contained in:
parent
b27d274a43
commit
2956ba702f
@ -689,7 +689,6 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
void StepRTB_SelectionChanged(object sender, EventArgs e)
|
void StepRTB_SelectionChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
//Console.WriteLine("StepRTB_SelectionChanged id= {0}", MyItemInfo.ItemID);
|
|
||||||
if (_InitializingRTB) return;
|
if (_InitializingRTB) return;
|
||||||
HandleSelectionChange();
|
HandleSelectionChange();
|
||||||
}
|
}
|
||||||
@ -2058,16 +2057,6 @@ namespace Volian.Controls.Library
|
|||||||
{
|
{
|
||||||
if (!ReadOnly)
|
if (!ReadOnly)
|
||||||
{
|
{
|
||||||
// The richtextbox in steprtb does not properly place backslashes into the rtf text. It appears
|
|
||||||
// that the backslash is stored as a single backslash rather than a double backslash which
|
|
||||||
// causes the rtf/displaytext saving to strip additional characters. For now, the easiest
|
|
||||||
// approach is to not allow backslashes to be used. This is a 'temporary' fix for B2011-077.
|
|
||||||
if (e.KeyChar == 92)
|
|
||||||
{
|
|
||||||
MessageBox.Show("Backslash is not a usable character in PROMS", "Backslash", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
|
||||||
e.Handled = true;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// add the character with its font depending on the char....
|
// add the character with its font depending on the char....
|
||||||
if (!IsControlChar)
|
if (!IsControlChar)
|
||||||
{
|
{
|
||||||
@ -2102,6 +2091,8 @@ namespace Volian.Controls.Library
|
|||||||
AddRtf(@"\{");
|
AddRtf(@"\{");
|
||||||
else if (e.KeyChar == '}')
|
else if (e.KeyChar == '}')
|
||||||
AddRtf(@"\}");
|
AddRtf(@"\}");
|
||||||
|
else if (e.KeyChar == '\\')
|
||||||
|
AddRtf(@"\\");
|
||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
e.Handled = true; // flag that it's been handled, otherwise, will get 2 chars.
|
e.Handled = true; // flag that it's been handled, otherwise, will get 2 chars.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user