private bool IsCtrl(System.Windows.Input.KeyboardDevice keyboardDevice) { if ((keyboardDevice.IsKeyDown(System.Windows.Input.Key.LeftCtrl)) || (keyboardDevice.IsKeyDown(System.Windows.Input.Key.RightCtrl))) { return(true); } else { return(false); } }
private bool IsControlDown(System.Windows.Input.KeyboardDevice keyboard) { return(keyboard.IsKeyDown(System.Windows.Input.Key.LeftCtrl) || keyboard.IsKeyDown(System.Windows.Input.Key.RightCtrl)); }
private bool IsShiftDown(System.Windows.Input.KeyboardDevice keyboard) { return(keyboard.IsKeyDown(System.Windows.Input.Key.LeftShift) || keyboard.IsKeyDown(System.Windows.Input.Key.RightShift)); }