private void txtTitle_KeyDown(object sender, KeyEventArgs e)
{
// If enter is pushed, then attempt to push the name change.
if (e.KeyCode == Keys.Enter)
txtTitle_FocusLeft(null, e);
// If escape is pushed, abort the name change.
else if (e.KeyCode == Keys.Escape)
{
TitleText = _model.CurrentFileName;
HTMLEditor.Focus();
}
}