public override void HandleMouseDrag(Point mousePoint) { if (!IsSelecting) { ActiveChild.StartSelection(); IsSelecting = true; } ActiveChild.HandleMouseDrag(mousePoint); AdjustCarets(); }
public override bool ConsumeMouseClick(Point mousePoint) { if (Keyboard.IsKeyDown(Key.LeftShift) || Keyboard.IsKeyDown(Key.RightShift)) { IsSelecting = true; ActiveChild.StartSelection(); ActiveChild.HandleMouseDrag(mousePoint); } else { ActiveChild.ConsumeMouseClick(mousePoint); //never forget, EquationRoot has only one child at all times!! IsSelecting = true; //else DeSelect() might not work! DeSelect(); } AdjustCarets(); return(true); }