protected override void OnMouseDown(MouseEventArgs e) { base.OnMouseDown(e); mouseClickLocation = e.Location; mouseDown = true; shiftPressed = ModifierKeys == Keys.Shift; if (shiftPressed) { rectZoomInteractor.Activate(); rectZoomInteractor.ProcessMouseButtonDown(new CanonicalMouseEventArgs(e), GetInteractionContext()); currentInteractorDrawable = rectZoomInteractorDrawable; } else { panInteractor.Activate(); panInteractor.ProcessMouseButtonDown(new CanonicalMouseEventArgs(e), GetInteractionContext()); } }