From 2956ba702f62b277b9457daeaa81ed393d8cf667 Mon Sep 17 00:00:00 2001 From: Kathy Date: Wed, 12 Sep 2012 13:23:21 +0000 Subject: [PATCH] --- PROMS/Volian.Controls.Library/StepRTB.cs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/PROMS/Volian.Controls.Library/StepRTB.cs b/PROMS/Volian.Controls.Library/StepRTB.cs index 873d3780..23a73cc6 100644 --- a/PROMS/Volian.Controls.Library/StepRTB.cs +++ b/PROMS/Volian.Controls.Library/StepRTB.cs @@ -689,7 +689,6 @@ namespace Volian.Controls.Library } void StepRTB_SelectionChanged(object sender, EventArgs e) { - //Console.WriteLine("StepRTB_SelectionChanged id= {0}", MyItemInfo.ItemID); if (_InitializingRTB) return; HandleSelectionChange(); } @@ -2058,16 +2057,6 @@ namespace Volian.Controls.Library { 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.... if (!IsControlChar) { @@ -2102,6 +2091,8 @@ namespace Volian.Controls.Library AddRtf(@"\{"); else if (e.KeyChar == '}') AddRtf(@"\}"); + else if (e.KeyChar == '\\') + AddRtf(@"\\"); else return; e.Handled = true; // flag that it's been handled, otherwise, will get 2 chars.