Exemple #1
0
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            var e = new CmdKeyEventArgs(keyData);

            OnCmdKey(e);
            if (e.Handled)
            {
                return(true);
            }

            return(base.ProcessCmdKey(ref msg, keyData));
        }
Exemple #2
0
 protected virtual void OnCmdKey(CmdKeyEventArgs e)
 {
     CmdKey?.Invoke(this, e);
 }