My program is quite large and uses WPF, and I want to have a global shortcut that uses "R", without modifiers.
There are many controls, such as TextBox, ListBox, ComboBox, etc., which use letters inside the control itself, which is fine - this is right for me.
But - I want this KeyDown event to go to the main window , where it would trigger a shortcut at any time when the user enters the letter "R" in the TextBox, for example.
Ideally, I would like to be able to do this without having to specify (and do if-then logic) each instance / type of control that could receive ordinary alphanumeric keystrokes (and not just TextBox controls, although they are the worst offenders).
c # event-bubbling wpf
redroze
source share