From a17ea54db029ac9ff8cd9d47011b7d23fb90ac85 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 1 Jul 2015 15:03:36 +0000 Subject: [PATCH] Fixed Insert Table shortcut key functionality --- PROMS/Volian.Controls.Library/StepTabRibbon.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/StepTabRibbon.cs b/PROMS/Volian.Controls.Library/StepTabRibbon.cs index 9d4fdb7c..a93b4696 100644 --- a/PROMS/Volian.Controls.Library/StepTabRibbon.cs +++ b/PROMS/Volian.Controls.Library/StepTabRibbon.cs @@ -1320,16 +1320,25 @@ namespace Volian.Controls.Library { // If there is only one 'table' type from format under the ribbon's table item, // eliminate that button and move up the RO & Text Table buttons. - if (btn.SubItems.Count == 1) + if (btn.SubItems.Count == 1) // single column step editor { + // setup the sub menus for the insert table ribbon button btn.Tag = btn.SubItems[0].Tag; btn.SubItems.Clear(); DoTableSubMenu(btn); + // setup the sub menus for the context menu used with the keyborad shortcut + cmbtn.Tag = cmbtn.SubItems[0].Tag; + cmbtn.SubItems.Clear(); + DoTableSubMenu(cmbtn); } else { + // setup the sub menus for the insert table ribbon button foreach (DevComponents.DotNetBar.ButtonItem tabbtn in btn.SubItems) DoTableSubMenu(tabbtn); + // setup the sub menus for the context menu used with the keyborad shortcut + foreach (DevComponents.DotNetBar.ButtonItem cmtabbtn in cmbtn.SubItems) + DoTableSubMenu(cmtabbtn); } } // if only 1, be sure event exists on button to insert item & if more than 1 remove event because