diff --git a/PROMS/Volian.Controls.Library/StepRTB.cs b/PROMS/Volian.Controls.Library/StepRTB.cs index d7cd2826..bd126a2f 100644 --- a/PROMS/Volian.Controls.Library/StepRTB.cs +++ b/PROMS/Volian.Controls.Library/StepRTB.cs @@ -2317,9 +2317,18 @@ namespace Volian.Controls.Library } if (SelectionStart != TextLength) { - SelectionStart++;// A Delete can be accomplished with a right arrow followed by a backspace. - RtbSendKeys("{BS}"); // This is done due to a glitch in the RichTextBox that sometimes causes a beep rather than a delete - e.SuppressKeyPress = true; + if (e.Control) + { + // B2016-245 [ctrl][delete] deletes rest of word to the right of the cursor + RtbSendKeys("+^{RIGHT}{BS}"); //[shift][ctrl][right arrow] (selects rest of word to the right) folowed by a backspace (delete) + e.SuppressKeyPress = true; + } + else + { + SelectionStart++;// A Delete can be accomplished with a right arrow followed by a backspace. + RtbSendKeys("{BS}"); // This is done due to a glitch in the RichTextBox that sometimes causes a beep rather than a delete + e.SuppressKeyPress = true; + } } } else