private void cefMenu_LoadScript(object sender, EventArgs e)
 {
     this.InvokeOnUiThreadIfRequired(new Action(() =>
     {
         FrmOpenScripts frmOpenScript = new FrmOpenScripts(this);
         frmOpenScript.ShowDialog(this);
     }));
 }
        protected void webBrowser_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
        {
            Console.WriteLine("webBrowser_PreviewKeyDown:" + e.Modifiers + "+" + e.KeyCode);
            if (e.Modifiers == Keys.None)
            {
                switch (e.KeyCode)
                {
                case Keys.F12:
                {
                    if (cefDevContainer.Tag != null)
                    {
                        CloseDevTools();
                    }
                    else
                    {
                        ShowDevTools();
                    }
                }
                break;

                case Keys.F5:
                {
                    RefreshPage();
                }
                break;

                case Keys.F6:
                {
                    FrmOpenScripts frm = new FrmOpenScripts(this);
                    frm.ShowDialog(this);
                }
                break;

                default:
                    break;
                }
            }
        }