On Mar 30, 2011, at 8:26 PM, Mattias Gaertner wrote:

> On Wed, 30 Mar 2011 15:52:57 +0200
> Darius Blaszyk <[email protected]> wrote:
> 
>> [...]
>> 2) OnKeyDown and OnKeyUp for TForm always give an uppercase value for the 
>> key,
> 
> The Key parameter is the virtual key code.
> 
> 
>> only OnKeyPress gives the correct character (lower or uppercase) for win32. 
>> On Mac however I got the right value for the key that fired the method each 
>> time.
> 
> How can a virtual key code give upper or lower case? Maybe you mean
> ssShift is not set correct in the Shift parameter under Windows?
> 

I didn't realize they were VKs. It makes sense now. Still however there is some 
strangeness.

The TForm.OnKeyDown method is only executed once on Mac. On win32 it is 
executed all the time, but then again the TOpenGLControl1.OnKeyDown is not 
executed on win32 but works on Mac. 

Regards, Darius
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to