
Accelerator Keys in the ribbon menus don't seem to work and/or are not supported.
I'm not talking about the ribbon tip keys:
<ribbon:Button Command="local:ApplicationCommands.FileNewRtfDocument" KeyTipAccessText="R"...
those work fine. I'm talking about the accelerator key underlines. I define my command in the ApplicationCommands.cs file like so:
public static RibbonCommand ApplicationExit
{
get
{
if ((object)applicationExit == null)
applicationExit = new RibbonCommand("ApplicationExit", typeof(Ribbon), "E_xit Template Manager", null, "/TemplateMgr;component/Resources/Exit16.png");
return applicationExit;
}
}
The "x" in "Exit" is not underlined and I can not use "x" to exit unless the key tips are active. Also tried the old school "E&xit" method with no luck.
You'll see the Office 2007 ribbon supports accelerator keys in MENUS. Not in the ribbon itself. None of the ribbon style menus (drop downs, pop ups, context, application button, etc. seem to support accelerator keys.
Is this a style or is the accelerator key indicated some other way besides _ or &?
[Modified at 03/03/2010 11:39 AM]
I'm not talking about the ribbon tip keys:
<ribbon:Button Command="local:ApplicationCommands.FileNewRtfDocument" KeyTipAccessText="R"...
those work fine. I'm talking about the accelerator key underlines. I define my command in the ApplicationCommands.cs file like so:
public static RibbonCommand ApplicationExit
{
get
{
if ((object)applicationExit == null)
applicationExit = new RibbonCommand("ApplicationExit", typeof(Ribbon), "E_xit Template Manager", null, "/TemplateMgr;component/Resources/Exit16.png");
return applicationExit;
}
}
The "x" in "Exit" is not underlined and I can not use "x" to exit unless the key tips are active. Also tried the old school "E&xit" method with no luck.
You'll see the Office 2007 ribbon supports accelerator keys in MENUS. Not in the ribbon itself. None of the ribbon style menus (drop downs, pop ups, context, application button, etc. seem to support accelerator keys.
Is this a style or is the accelerator key indicated some other way besides _ or &?
[Modified at 03/03/2010 11:39 AM]