Auto select custom property value field when pop up, user can start typing to change value right away.

This commit is contained in:
marynate
2014-02-27 22:16:00 +08:00
parent a65edb4caa
commit 8fb19e5843
3 changed files with 59 additions and 1 deletions

View File

@ -748,6 +748,11 @@ bool LineEdit::is_secret() const {
void LineEdit::select(int p_from, int p_to) {
if (p_from==0 && p_to==0) {
selection_clear();
return;
}
int len = text.length();
if (p_from<0)
p_from=0;