Exemplo n.º 1
0
        protected override bool ProcessCmdKey(ref Message msg, Keys keyCode)
        {
            VgcApis.Misc.Utils.RunInBackground(
                () => VgcApis.Misc.UI.Invoke(() =>
            {
                switch (keyCode)
                {
                case (Keys.Control | Keys.P):
                    ToggleToolsPanel(!isShowPanel);
                    break;

                case (Keys.Control | Keys.F):
                    ShowSearchBox();
                    break;

                case (Keys.Control | Keys.S):
                    configer.InjectConfigHelper(null);
                    break;

                case (Keys.Control | Keys.OemOpenBrackets):
                    editor?.ZoomOut();
                    break;

                case (Keys.Control | Keys.Oem6):
                    editor?.ZoomIn();
                    break;
                }
            }));
            return(base.ProcessCmdKey(ref msg, keyCode));
        }