protected override void OnViewMouseDown(EditorViewMouseEventArgs e) { if ((e.Button == MouseButtons.Left) && (Control.ModifierKeys == Keys.Control)) { if ((e.get_HitTestResult().get_Token() != null) && (e.get_HitTestResult().get_Token().get_Key() == "CommentURLToken")) { e.set_Cancel(true); WebHelper.LaunchBrowser(base.get_Document().GetTokenText(e.get_HitTestResult().get_Token())); } else if ((e.get_HitTestResult().get_Token() != null) && ((e.get_HitTestResult().get_Token().get_Key() == "SingleLineComment") || (e.get_HitTestResult().get_Token().get_Key() == "MultiLineComment"))) { string tokenText = base.get_Document().GetTokenText(e.get_HitTestResult().get_Token()); Match match = UriMatcher.Match(tokenText); if (match.Success) { e.set_Cancel(true); WebHelper.LaunchBrowser(match.Value); } } } base.OnViewMouseDown(e); }