private void cbxInput_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Up && e.Modifiers == Keys.Control)
{
e.Handled = e.SuppressKeyPress = true;
ChatHistoryPrev();
return;
}
if (e.KeyCode == Keys.Down && e.Modifiers == Keys.Control)
{
e.Handled = e.SuppressKeyPress = true;
ChatHistoryNext();
return;
}
if (e.KeyCode != Keys.Enter) return;
e.Handled = e.SuppressKeyPress = true;
ProcessInput();
}