BKStart a conversation ↗

Key modifiers

Recently I used PInvoke to check if the SHIFT key was pressed while I was doing a drag operation...

What I should have done then and have done now is

if((Keyboard.Modifiers & ModifierKeys.Shift) != ModifierKeys.None)
  Trace.WriteLine("Shift is pressed");