I'm trying to bind any keyboard key pressed to a command in the ViewModel
.
I know that I can bind a specific key, using:
<Window.InputBindings>
<KeyBinding Command="{Binding ChangeIdCommand}" Key="B"/>
</Window.InputBindings>
Can I bind all key presses to ChangeIdCommand
without having to type them all manually?