Properly Save Text from DisplayText

Fixed logic to support single character in a stepRTB
(Fixed 127) Corrected code to deal with null AERStepItem
Added code to respond to a Right Arrow for steps that don't have RNOs
Changed KeyDown (Keys.Down) logic to support a Hard-Return at the end of a StepRTB
This commit is contained in:
Rich
2010-10-19 15:55:08 +00:00
parent 4e8b7932bd
commit 8f110a10e3
4 changed files with 27 additions and 23 deletions

View File

@@ -1585,7 +1585,7 @@ namespace Volian.Controls.Library
pos.Y = ClientRectangle.Height;
int lastIndex = this.GetCharIndexFromPosition(pos);
int lastLine = this.GetLineFromCharIndex(lastIndex);
if (e.Control || l == lastLine)
if (e.Control || l >= lastLine)
{
StepRTB_ArrowPressed(e.Control ? E_ArrowKeys.CtrlDown : E_ArrowKeys.Down);
HandleLocalSelectionChange();
@@ -1729,7 +1729,7 @@ namespace Volian.Controls.Library
}
private void StepRTB_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
{
if (!ReadOnly)
if (!ReadOnly)
{
// add the character with its font depending on the char....
if (!IsControlChar)