diff --git a/SunnyUI/Controls/UIIPTextBox.cs b/SunnyUI/Controls/UIIPTextBox.cs index 50efd5af..6aaee93f 100644 --- a/SunnyUI/Controls/UIIPTextBox.cs +++ b/SunnyUI/Controls/UIIPTextBox.cs @@ -116,7 +116,7 @@ namespace Sunny.UI TextBox txtPrev = PrevTextBox(t); if (txtPrev == null) return; txtPrev.Focus(); - if (txtPrev.TextLength > 0) + if (!ReadOnly && txtPrev.TextLength > 0) txtPrev.Text = txtPrev.Text.Remove(txtPrev.TextLength - 1, 1); txtPrev.SelectionStart = txtPrev.TextLength;