Search code examples
wpfcommandkeyboard-shortcutsfluent-ribbon

WPF Fluent Ribbon KeyTip shortcuts not firing commands


I'm using the Fluent Ribbon. I'm trying to get the KeyTips working. It works fine for navigation, as I can navigate about between tabs and everything displays correctly. My problem is nothing happens when i finally try to run a command. Take the button below. I can navigate to it by pressing ALT -> F, when I then press C nothing happens except it removes the KeyTip tooltip. It do not run the actual command. It works fine if I simply click the button. XAML example below of how I bind my command.

<Fluent:Button Command="{Binding ExitCommand}"
               Fluent:KeyTip.Keys="C"
               Header="Close" />

Is there some special way i need to setup the commands when using KeyTip's?

I've tried the sample that comes with the Fluent library but they don't actualy implement any commands. But if i implement a simple command in it it do not work there either.

So is KeyTip's purely graphical navigation of the Ribbon and do i need to implement my own hotkey listeners using Gestures and other stuff available in WPF to fire the commands?


Solution

  • Bug in the 2.0 Release of Fluent Ribbon.

    It was fixed in changeset:

    7dceb28d2562 on Nov 25 2010 6:46 AM "Command & KeyTip" bug has been fixed.