How to invoke command with Shortcut

Topics: CAB & Smart Client Software Factory
May 13, 2006 at 10:09 AM
originally posted by: jbranson

Hello,

I would like to invoke a command as a response of a keyboard event.

Is there a way to implement a custom command adapter that manage keyboard event holders, so that the command is triggered when the key combinaison occurs?

Maybe there are other way to implement it?

A Workaround I found, not nice at all consist in associating a menuitem with a keyboard shortcut and set its Visible property to false, when the keyboard sequence occurs, the comand is triggered.

Many thanks for your answer.
Oct 4, 2006 at 5:09 AM
originally posted by: NathanCooke

Any update on this?

I'm looking into it as well....
Oct 4, 2006 at 10:47 AM
originally posted by: ChrisHolmes

This article may help: http://www.codeproject.com/csharp/globalhook.asp

You could implement that and then fire off an EventBroker event scoped Global and it should achieve the same effect without having to hide a UI element.