shotcuts in ribbon menu

Mar 15, 2014 at 1:39 AM
Is posible add shortcuts in the items collection buttons of ribbon dropdow button?

Thanks
Developer
Mar 17, 2014 at 8:44 AM
Someone implemented shortcuts based on the ALT key. But I have never used it.
Developer
Apr 1, 2014 at 2:30 PM
In case of the AltKey is not working for you, you can replace it with an ordinary hidden menustrip and hidden menu items.
You can assign Shortcut Key to the hidden menustrip's items.
It has the same effect as applying shortcut key to the Ribbon Menu.
Apr 2, 2014 at 10:14 AM
I use shortcuts keys for Ribbon-Items and show Ribbon-Tabs by this way (on my main form 'Settings' ):
       private void Settings_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.Control && e.KeyCode == Keys.S)
                SaveMenu(this,e);
            if (e.Control && e.KeyCode == Keys.R)
                ReloadMenu(this, e);
            if (e.Alt && e.KeyCode == Keys.F)
            {
                DisplayRibbonFile(sender, e);
                e.SuppressKeyPress = true;
            };
            if (e.Alt && e.KeyCode == Keys.C)
            {
                DisplayRibbonConfig(sender, e);
                e.SuppressKeyPress = true;
            };
            if (e.Alt && e.KeyCode == Keys.A)
            {
                DisplayRibbonAudit(sender, e);
                e.SuppressKeyPress = true;
            };
            if (e.Alt && e.KeyCode == Keys.R)
            {
                DisplayRibbonReporting(sender, e);
                e.SuppressKeyPress = true;
            };
            if (e.Alt && e.KeyCode == Keys.H)
            {
                DisplayRibbonHelp(sender, e);
                e.SuppressKeyPress = true;
            };
        }
Developer
Apr 2, 2014 at 2:23 PM
nice