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
2010-09-10 17:40:44
So, the easier way appears to be just to give in and use command objects. Got it.
Charles
2010-10-15 14:04:49