As a follow up, almost 2 months later:

On 07/02/11 23:20, Albrecht Schlosser wrote:
> On 07.02.2011 03:40, Ben Stott wrote:
>
>> As noted in #2527, the keyboard demo fails to pick up the right shift
>> key, instead claiming it to be a left shift.
>> This is because lParam&(1<<24) is 0 for the shift key, and only the
>> shift key, though I've no idea why this is the case (it *is* noted in
>> the keyboard demo as a known bug of Windows - at least, on 2.0).
> IMHO it's not worth the effort, because it will fail anyway in some or
> more cases - unless MS decide to do it The Right Way. To your questions:
> I'd close the STR w/o resolution.

SVN r8535 has a fix for 2.0 on this. It just uses a boolean flag and 
GetKeyState to determine whether or not rshift has been 
pressed/released. I've tested this relatively thoroughly and it looks 
like it holds up. If you want, I can see if I can bash together a 1.3 
patch, or you can knock up your own...?

Just thought I'd pass along the heads up :-)

Regards,
Ben

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to