public override bool OnContextMenuCommand(IWebBrowser browserControl, IBrowser browser, IFrame frame, IContextMenuParams parameters, CefMenuCommand commandId, CefEventFlags eventFlags) { if (base.OnContextMenuCommand(browserControl, browser, frame, parameters, commandId, eventFlags)) { return(true); } switch (commandId) { case CefMenuCommand.Reload: form.InvokeAsyncSafe(form.ReloadToTweetDeck); return(true); case MenuSettings: form.InvokeAsyncSafe(form.OpenSettings); return(true); case MenuAbout: form.InvokeAsyncSafe(form.OpenAbout); return(true); case MenuPlugins: form.InvokeAsyncSafe(form.OpenPlugins); return(true); case MenuMute: form.InvokeAsyncSafe(ToggleMuteNotifications); return(true); case MenuOpenTweetUrl: OpenBrowser(form, Context.Chirp.TweetUrl); return(true); case MenuCopyTweetUrl: SetClipboardText(form, Context.Chirp.TweetUrl); return(true); case MenuScreenshotTweet: form.InvokeAsyncSafe(form.TriggerTweetScreenshot); return(true); case MenuOpenQuotedTweetUrl: OpenBrowser(form, Context.Chirp.QuoteUrl); return(true); case MenuCopyQuotedTweetUrl: SetClipboardText(form, Context.Chirp.QuoteUrl); return(true); case MenuWriteApplyROT13: form.InvokeAsyncSafe(form.ApplyROT13); return(true); case MenuSearchInColumn: string query = parameters.SelectionText; form.InvokeAsyncSafe(() => form.AddSearchColumn(query)); DeselectAll(frame); break; } return(false); }