protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (!ShareUtils.IsValidKeyForReadOnlyFields(keyData)) { return(true); } return(base.ProcessCmdKey(ref msg, keyData)); }
protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData == Keys.Enter) { SendMessage(); } if (listViewMessage.Focused && !ShareUtils.IsValidKeyForReadOnlyFields(keyData)) { return(true); } return(base.ProcessCmdKey(ref msg, keyData)); }