!62 修复UIIPTextBox当Readonly时的bug
Merge pull request !62 from asuper/fix_uiiptextbox
This commit is contained in:
commit
fa7aaad7b4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user