Hotkey problems

Oct 13, 2010 at 11:05 AM

The hot keys using Ctrl + Letter are not working for me. What funny is the Alt + (Displayed Key) is.

Not sure yet what the problem is. Please help. 

Oct 13, 2010 at 11:26 AM

There is no automatic handling of Ctrl + (Letter) in the Windows Ribbon Framework.
You must handle this key press yourself.

The only automatic access keys are Alt + (Displayed Letter), which you already find out yourself.

Oct 13, 2010 at 5:17 PM

That works. Was thinking it was automatic because of the tooltip the example has. Here a very, very SIMPLE example of a 
KeyUp Event for anyone else that need it. Still wish I could foreach the ribbon to get all the RibbonButtons and Invoke the event.
        public void Editor_KeyUp(object sender, KeyEventArgs e)
            if (e.Control)
                switch (e.KeyCode)
                    case Keys.N:
                        mnuNewProject_Click(null, null);
Oct 14, 2010 at 8:29 AM

Thanks for sharing.