BCGControlBar Pro for MFC
virtual void CBCGPEditListBase::OnKey ( WORD  wKey,
BYTE  fFlags 

Called when the user pressed the keyboard key.

The default base implementation checks for "F2" or " " (space) key and invokes in-place editing of the selected (if any) item.

wKeySpecifies the virtual key code of the key that has been pressed
fFlagsSpecifies the scan code, key transition code, previous key state and context code. See CWnd::OnKeyDown for details.