I'm wondering if this is a bug, I couldn't find anything describing it. I make a new project and add a TToolBar, and a OnKeyDown event:
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
ShowMessage('You pressed key #' + IntToStr(key));
end;
The event is triggered until I click on the (empty) TToolBar, then it is not. It seems TToolBar got the focus and is capturing the event. Clicking back on the Frame does not change it back.
Thanks,
Frederick
OS X 10.6.5 Intel
Lazarus 0.9.31
Carbon Widgets