mask.cpp Tolta e aggiunta parentesi (stando al diff)

relapp.cpp Migliorato supporto per messaggio LN


git-svn-id: svn://10.65.10.50/trunk@4270 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1997-04-10 15:22:15 +00:00
parent f9fcacdf75
commit 633724c4d8
2 changed files with 14 additions and 3 deletions

View File

@ -573,7 +573,7 @@ bool TMask::stop_run(
// @comm Permette di chiudere la maschera come se l'utente avesse premuto il tasto <p key>. // @comm Permette di chiudere la maschera come se l'utente avesse premuto il tasto <p key>.
// Nel caso la maschera non si chiuda (es. un check fallito), ritorna FALSE. // Nel caso la maschera non si chiuda (es. un check fallito), ritorna FALSE.
{ {
if (key != K_AUTO_ENTER && key != K_FORCE_CLOSE) if (key != K_AUTO_ENTER && key != K_FORCE_CLOSE)
{ {
const int last = fields(); const int last = fields();

View File

@ -749,8 +749,19 @@ bool TRelation_application::main_loop()
k = K_ENTER; k = K_ENTER;
break; break;
case K_ENTER: case K_ENTER:
if (find(0)) modify_mode(); if (_lnflag)
else insert_mode(); {
for (k = 1; k <= MAX_KEYS && !test_key(k, FALSE); k++);
if (k <= MAX_KEYS && find(k))
modify_mode();
else
k = K_QUIT;
}
else
{
if (find(0)) modify_mode();
else insert_mode();
}
break; break;
case K_SAVE: case K_SAVE:
if (save(FALSE)) if (save(FALSE))