In a WPF application, say I have a window, and I set up a key binding to run a command if I press a certain key on the keyboard.
Somewhere in my Window object I expect my key binding is stored. I expect when a key is pressed on the keyboard, that generates a "key was pressed" event, and the operating system determines which window has focus, (and perhaps what control on the window has focus,) and sends the "key was pressed" event to to window, and the window has a list of events it handles, and if there's a match then it calls the corresponding event handler.
But I can't find that list.
Maybe it doesn't work that way. Maybe the window registers the events it's interested in with some higher power, and that higher power keeps the list of events the window handles.
Either way, my problem is I press the key, and... nothing happens.
So I'm trying to trace what happens to this key event, because it's not resulting in my command being called.