KeyDown and MouseDown events all at once. How can it be done?
Hello everyone!
I have an issue here and I hope you can help me. I have a list view. If the user press SHIFT and click with the left button, I am supposed to do some operation.
I created a global boolean shiftPressed variable and on the key down event I set this variable to true. On the mouse down event I check if (shiftPressed && e.Button == MouseButton.LEFT) is equals to true
But this is not 100% OK because the user can just press shift, stop pressing, and then just left-click and the operation is still done.
What I need is to check when he left-click he stil is pressing the shift button.