You've already forked lazarus-ccr
fpspreadsheet: Disable DEL key in worksheet grid when a cell is protected from being edited.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6845 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -4662,10 +4662,12 @@ begin
|
|||||||
VK_F2:
|
VK_F2:
|
||||||
FEnhEditMode := true;
|
FEnhEditMode := true;
|
||||||
VK_DELETE:
|
VK_DELETE:
|
||||||
if (ssCtrl in Shift) then
|
if not FReadOnly then begin
|
||||||
Worksheet.DeleteSelection
|
if (ssCtrl in Shift) then
|
||||||
else
|
Worksheet.DeleteSelection
|
||||||
Worksheet.EraseSelection(true);
|
else
|
||||||
|
Worksheet.EraseSelection(true);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
inherited;
|
inherited;
|
||||||
|
Reference in New Issue
Block a user