Posted by morganconrad
on November 4, 2009 at 11:17 PM PST
I'm playing with the Piet Blok JXLayer code, and I can't get key events to come through. I want the "zoom" effect to only happen when the user holds down the control key.
It works if they move the mouse and hold down the key, but not if they just hold down the key.
So far as I can tell, MagnifierUI.processKeyEvent() never gets called. Do I need to enable input events or something?
The code is hard to debug because the ,jar file is compiled without line numbers, so I can't get Eclipse to go into the underlying code. Is there a fix for this?
I did notice that JXLayer seems to have two fields named eventMask, and they have two different values. One is the private field declared in JXLayer, one the field in Component. This seems highly suspicious.