I am trying to implement paste functionality in my application, which means a user can copy a number of files selecting from Windows Explorer and then paste it to the application using CTRL + C and CTRL + V.
The problem is CTRL + V only works on focused control. The code I used is:
<UserControl.InputBindings>
<KeyBinding Modifiers="Control"
Key="V"
Command="{Binding PasteFilesCommand}" />
</UserControl.InputBindings>
My application is following the MVVM model. How can I capture a Ctrl+V event when focus is on any control of the application window?