From 72359319a4b7e220ba07b1bb973b261dc0a0a20f Mon Sep 17 00:00:00 2001 From: mschill Date: Fri, 23 Oct 2026 14:41:29 -0400 Subject: [PATCH] B2026-086 Have Shortcut Keys for adding an RNO auto-work instead of having to press a button after shortcut key --- .../Volian.Controls.Library/StepTabRibbon.cs | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/PROMS/Volian.Controls.Library/StepTabRibbon.cs b/PROMS/Volian.Controls.Library/StepTabRibbon.cs index f3ba9b2d..e1851db7 100644 --- a/PROMS/Volian.Controls.Library/StepTabRibbon.cs +++ b/PROMS/Volian.Controls.Library/StepTabRibbon.cs @@ -3512,10 +3512,24 @@ namespace Volian.Controls.Library } break; case "InsRNO": - displayMenu = ((actable & E_AccStep.AddingRNO) > 0) && btnCMInsRNO.Enabled; + //B2026-086 Have Shortcut Keys for adding a RNO auto-work instead of having to press a button after shortcut key + displayMenu = false; LetUserKnowIfTheyCannotAdd(actable, E_AccStep.AddingRNO,"RNO"); // B2018-014 Inform user that they cannot add the specified step type - _ContextMenuBar.SetContextMenuEx(_MyStepRTB, btnCMInsRNO); - break; + + if (((actable & E_AccStep.AddingRNO) > 0) && btnCMInsRNO.Enabled) + { + try + { + btnCMInsRNO.SubItems["cmbtnRNOType"].RaiseClick(); + } + catch + { + _ContextMenuBar.SetContextMenuEx(_MyStepRTB, btnCMInsRNO); + displayMenu = true; + } + } + + break; case "InsSubStps": displayMenu = ((actable & E_AccStep.AddingSub) > 0) && btnCMInsSubStps.Enabled; LetUserKnowIfTheyCannotAdd(actable, E_AccStep.AddingSub,"Sub-step"); // B2018-014 Inform user that they cannot add the specified step type