I have a form that the user can double click on with the mouse and it will do something. Now I want to be able to know if the user is also holding the Ctrl key do
This isn't really an answer to the question at hand, but I needed to do this in a console application and the detail was a little different.
I had to add references to WindowsBase
and PresentationFramework
, and at that point I could do:
if (System.Windows.Input.Keyboard.Modifiers == ModifierKeys.Control)
blah
Just adding this here in case someone else is doing something similar.