Modificato il comportamento della autoexit_func.
git-svn-id: svn://10.65.10.50/trunk@115 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
5369d148d9
commit
e5ce8eb212
@ -465,19 +465,19 @@ HIDDEN bool _autoexit_val(TEdit_field& f, KEY key)
|
|||||||
if (empty)
|
if (empty)
|
||||||
{
|
{
|
||||||
if (c.check_type() != CHECK_NONE || one_not_empty)
|
if (c.check_type() != CHECK_NONE || one_not_empty)
|
||||||
return key == K_TAB;
|
return TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
one_not_empty = TRUE;
|
one_not_empty = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ok = TRUE;
|
|
||||||
if (key == K_TAB)
|
if (key == K_TAB)
|
||||||
f.mask().send_key(K_AUTO_ENTER, 0);
|
{
|
||||||
else
|
if (one_not_empty)
|
||||||
ok = one_not_empty;
|
f.mask().stop_run(K_AUTO_ENTER);
|
||||||
|
}
|
||||||
|
|
||||||
return ok;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user