private bool HandleDoubleClick(InputEventArgs e, ModifierKeys modifiers) { switch (modifiers) { case ModifierKeys.None: var point = GetAdjustedPosition(e, _history.VisualComponent.TextView); var textLine = GetTextViewLineUnderPoint(point); if (textLine != null) { _history.SendSelectedToRepl(); } return(true); default: return(true); } }
public override CommandResult Invoke(Guid group, int id, object inputArg, ref object outputArg) { _history.SendSelectedToRepl(); return(CommandResult.Executed); }