private void OnValueTextValueKeyDown(KeyEventArgs e) { if (_editMode) { if (e.KeyData == Keys.Escape) { EditMode = false; this.Focus(); return; } if (e.KeyData == Keys.Enter) { bool success = _watchVarWrapper.SetStringValue(_valueTextBox.Text, FixedAddressList); EditMode = false; if (!success) { FlashColor(FAILURE_COLOR); } this.Focus(); return; } } }