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:
@@ -713,16 +713,14 @@ namespace Volian.Controls.Library
|
||||
break;
|
||||
case E_ArrowKeys.Down:
|
||||
case E_ArrowKeys.CtrlDown:
|
||||
ii = ArrowDown(rtb.MyItemInfo);
|
||||
// The following lines are debug to check that the results of moving down and moving up are the same
|
||||
//ix = ArrowUp(ii);
|
||||
//Console.WriteLine("'Down',{0},{1},{2},{3}", rtb.MyItemInfo.ItemID, rtb.MyItemInfo.DBSequence, ii.DBSequence, ix.DBSequence);
|
||||
if (ii != null) SelectedStepRTB = _LookupStepItems[ii.ItemID].MyStepRTB;
|
||||
ii = MoveDown(rtb, ii);
|
||||
break;
|
||||
case E_ArrowKeys.Right:
|
||||
case E_ArrowKeys.CtrlRight:
|
||||
if (rtb.MyItemInfo.RNOs != null)
|
||||
SelectedStepRTB = _LookupStepItems[rtb.MyItemInfo.RNOs[0].ItemID].MyStepRTB;
|
||||
else
|
||||
ii = MoveDown(rtb, ii);
|
||||
break;
|
||||
case E_ArrowKeys.Left:
|
||||
case E_ArrowKeys.CtrlLeft:
|
||||
@@ -733,6 +731,16 @@ namespace Volian.Controls.Library
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private ItemInfo MoveDown(StepRTB rtb, ItemInfo ii)
|
||||
{
|
||||
ii = ArrowDown(rtb.MyItemInfo);
|
||||
// The following lines are debug to check that the results of moving down and moving up are the same
|
||||
//ix = ArrowUp(ii);
|
||||
//Console.WriteLine("'Down',{0},{1},{2},{3}", rtb.MyItemInfo.ItemID, rtb.MyItemInfo.DBSequence, ii.DBSequence, ix.DBSequence);
|
||||
if (ii != null) SelectedStepRTB = _LookupStepItems[ii.ItemID].MyStepRTB;
|
||||
return ii;
|
||||
}
|
||||
private ItemInfo ArrowUp(ItemInfo ii)
|
||||
{
|
||||
// Arrow-Up from a Substep should look for a Table.
|
||||
|
Reference in New Issue
Block a user