fixes for Enter key logic

This commit is contained in:
2009-12-10 19:44:43 +00:00
parent 5a7fcad996
commit d284c74eaf
3 changed files with 15 additions and 11 deletions

View File

@@ -974,7 +974,7 @@ namespace Volian.Controls.Library
MyStepRTB.StepRTB_ArrowPressed(E_ArrowKeys.CtrlRight); // jump to RNO
else if (deletedRNO)
{
if (MyStepItem.NextDownStepItem.MyItemInfo.MyParent.Equals(MyStepItem.MyItemInfo))
if (MyStepItem.NextDownStepItem.MyItemInfo.MyParent.ItemID == MyStepItem.MyID)
{
MyStepRTB.StepRTB_ArrowPressed(E_ArrowKeys.CtrlDown);
InsertSiblingBeforeOrAfter("before");
@@ -1005,8 +1005,12 @@ namespace Volian.Controls.Library
else if (MyItemInfo.IsInRNO && MyItemInfo.IsSubStep)
{
if (deletedEmpty)
{
MyStepRTB.StepRTB_ArrowPressed(E_ArrowKeys.CtrlLeft);
InsertSiblingBeforeOrAfter("after");
ShortCutContextMenu("InsRNO"); // create a new RNO
}
else
InsertSiblingBeforeOrAfter("after");
}
else if (MyItemInfo.IsSubStep)
{