Corretta gestione del tasto Annulla della maschera di edit

git-svn-id: svn://10.65.10.50/trunk@1888 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1995-09-25 11:39:10 +00:00
parent efcac010b2
commit c5678aa084

View File

@ -1557,11 +1557,12 @@ KEY TSpreadsheet::edit(int n, KEY tasto)
else else
k = sheet_mask().run(); k = sheet_mask().run();
if (k == K_ENTER) if (k == K_ENTER)
{ {
mask2str(n); mask2str(n);
} else }
else
{
if (k == K_DEL) if (k == K_DEL)
{ {
const bool ok = notify(n, K_DEL); // Notifica intenzione di cancellare const bool ok = notify(n, K_DEL); // Notifica intenzione di cancellare
@ -1572,15 +1573,16 @@ KEY TSpreadsheet::edit(int n, KEY tasto)
str2mask(n); str2mask(n);
} }
} }
#if XVT_OS != XVT_OS_WIN else
else if (k == K_ESC)
if (k == K_ESC) {
{ #if XVT_OS == XVT_OS_WIN
if (tasto == K_INS) str2mask(n);
destroy(n); #else
} if (tasto == K_INS) destroy(n);
#endif #endif
}
}
return k; return k;
} }