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:
alex 1994-09-01 09:28:48 +00:00
parent 5369d148d9
commit e5ce8eb212

View File

@ -465,19 +465,19 @@ HIDDEN bool _autoexit_val(TEdit_field& f, KEY key)
if (empty)
{
if (c.check_type() != CHECK_NONE || one_not_empty)
return key == K_TAB;
return TRUE;
}
else
one_not_empty = TRUE;
}
bool ok = TRUE;
if (key == K_TAB)
f.mask().send_key(K_AUTO_ENTER, 0);
else
ok = one_not_empty;
{
if (one_not_empty)
f.mask().stop_run(K_AUTO_ENTER);
}
return ok;
return TRUE;
}