B2019-136 When using the Entry key enter steps, if there is only one High Level Step type, don’t display the popup menu, just insert a new high level step (after) the current one

This commit is contained in:
John Jenko 2019-09-16 19:09:09 +00:00
parent c452ad5e13
commit 955c35bab1

View File

@ -3451,7 +3451,13 @@ namespace Volian.Controls.Library
if (!deletedHLS)
{
if (deletedSubStep)
SetShortCutContextMenu("InsHLS");
{
// B2019-136 if only one high level step type, don't display a pop up menu of high level step types
if (btnCMInsHLS.SubItems.Count > 1)
SetShortCutContextMenu("InsHLS");
else
InsertSiblingBeforeOrAfter("after");
}
else if (MyEditItem.MyRNOEditItems != null && MyEditItem.MyRNOEditItems.Count > 0)
MyStepRTB.StepRTB_ArrowPressed(E_ArrowKeys.CtrlRight); // jump to RNO
else if (deletedRNO)