One of the bugs I addressed in a descendant of tStringGrid appears to be in the latest release (4.4). Is there a more appropriate place to post suspected bugs?
It has to do with Cut, Copy, and Paste Keyboard shortcuts. I don't know about other OS's, but in Windows these are normally CNTL-X, CNTL-C, and CNTL-V
From the existing code in Grids.pas, procedure TCustomGrid.KeyDown, CUT uses the shift state of ssShift instead of ssModifier, which is defined as ssCntl.
VK_C:
if not FEditorKey and (Shift = [ssModifier]) then
doCopyToClipboard;
VK_V:
if not FEditorKey and (Shift = [ssModifier]) then
doPasteFromClipboard;
VK_X:
if not FEditorKey and (Shift = [ssShift]) then
doCutToClipboard;
And while addressing this, Windows also supports the INSERT and DELETE keys for Cut, Copy and Paste accelerators.
- CUT=ssShift+VK_Delete
COPY=ssCntl+VK_Insert
PASTE=ssShift+VK_Insert
Pressing DELETE without a shift state and while not editing a cell should delete the selection.