TForm only get's the events from the keyboard if KeyPreview is set,
IIRC. Apparently it's not a good way to go because enforcing key preview
on the form may spoil some other techniques or hinder existing programs
from working.
I hope someone having intimate LCL knowledge can jump in here and
Am Donnerstag, den 31.01.2008, 08:39 +0200 schrieb A.J. Venter:
I haven't looked into the sources deeply, but can't you override some
OnKeyXxx-methods to get the key events?
I don't think there ARE any to overwrite- perhaps in the parent class
for TCustomControl, but they aren't
Me too, I'd like to play around and maybe do something useful (or
funny :) with it. It could at least be put on the CCR if not into
lazarus distribution itself.
That may be a good start. I'll submit it to the CCR as soon as I finish 1.0
Please note I combined two posts below:
How about a
Am Donnerstag, 31. Januar 2008 07:39 schrieb A.J. Venter:
[...]
If not, maybe hooking into the surrounding forms events would
suffice.
This was my first idea, but unfortunately, it doesn't work at all.
The reason is that forms only get keyboard focus onActivate and even
then they only keep