From 955c35bab17cd655b87aa903d7c81b0f100ecfc9 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 16 Sep 2019 19:09:09 +0000 Subject: [PATCH] =?UTF-8?q?B2019-136=20When=20using=20the=20Entry=20key=20?= =?UTF-8?q?enter=20steps,=20if=20there=20is=20only=20one=20High=20Level=20?= =?UTF-8?q?Step=20type,=20don=E2=80=99t=20display=20the=20popup=20menu,=20?= =?UTF-8?q?just=20insert=20a=20new=20high=20level=20step=20(after)=20the?= =?UTF-8?q?=20current=20one?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Controls.Library/StepTabRibbon.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/StepTabRibbon.cs b/PROMS/Volian.Controls.Library/StepTabRibbon.cs index 20de465a..1aa7aca3 100644 --- a/PROMS/Volian.Controls.Library/StepTabRibbon.cs +++ b/PROMS/Volian.Controls.Library/StepTabRibbon.cs @@ -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)