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:
parent
efcac010b2
commit
c5678aa084
@ -1557,11 +1557,12 @@ KEY TSpreadsheet::edit(int n, KEY tasto)
|
||||
else
|
||||
k = sheet_mask().run();
|
||||
|
||||
|
||||
if (k == K_ENTER)
|
||||
{
|
||||
mask2str(n);
|
||||
} else
|
||||
}
|
||||
else
|
||||
{
|
||||
if (k == K_DEL)
|
||||
{
|
||||
const bool ok = notify(n, K_DEL); // Notifica intenzione di cancellare
|
||||
@ -1572,15 +1573,16 @@ KEY TSpreadsheet::edit(int n, KEY tasto)
|
||||
str2mask(n);
|
||||
}
|
||||
}
|
||||
#if XVT_OS != XVT_OS_WIN
|
||||
else
|
||||
if (k == K_ESC)
|
||||
{
|
||||
if (tasto == K_INS)
|
||||
destroy(n);
|
||||
}
|
||||
else
|
||||
if (k == K_ESC)
|
||||
{
|
||||
#if XVT_OS == XVT_OS_WIN
|
||||
str2mask(n);
|
||||
#else
|
||||
if (tasto == K_INS) destroy(n);
|
||||
#endif
|
||||
|
||||
}
|
||||
}
|
||||
return k;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user