Method SendKeyDownIf
SendKeyDownIf(ref bool, Key, ModifierKeys)
Same as SendKeyDown(Key, ModifierKeys) but checks for the condition
before sending action. This method sets condition to
the result of the send action operation.
public bool SendKeyDownIf(ref bool condition, Key keyCode, ModifierKeys modifiers = ModifierKeys.None)
Parameters
conditionboolkeyCodeKeymodifiersModifierKeys