views:

18

answers:

1

I've a simple WPF app, and I'd like to add what is known in the Win32 world as keyboard accelerators. It looks like KeyBinding is the ticket, but it requires binding to a Command object. I'm not using command objects, nor do I want to. Is there another way to get an event triggered when a ctrl-x key sequence is hit?

A: 

Then you should be looking into hooks.

http://www.codeproject.com/KB/cs/globalhook.aspx http://stackoverflow.com/questions/1639331/using-global-keyboard-hook-wh-keyboard-ll-in-wpf-c

HTH

Avatar
So, the easier way appears to be just to give in and use command objects. Got it.
Charles