Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Developer
_tom
Posts: 3
Registered: ‎05-13-2012
My Carrier: 9930

confused about keyPress and keyReleased(in subclass of Canvas ) events by the navigation keys

[ Edited ]

I just find the arrow keys are quite special when i use subclass of canvas to get player‘s action to draw image on the screen.

for common keys,if i press it and hold it for a while,the keyPress event has been occured but not the keyRelease event.

while,for a navigation key,say up,if i press it and hold it for a while,i find both keyPress event and keyRelease event have been occured automaticly for many times.

but i just want to invoke the keyReleased event by myself after i hold the arrow button for a while!

who can help me?

thanks

Please use plain text.
BlackBerry Development Advisor
twindsor
Posts: 739
Registered: ‎07-15-2008
My Carrier: Bell

Re: confused about keyPress and keyReleased(in subclass of Canvas ) events by the navigation keys

Are you developing a WebWorks app with an HTML5 Canvas? It sounds like you are doing a J2ME Canvas app and this the wrong forum for that.

Tim Windsor
Application Development Consultant
Please use plain text.