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

Java Development

Reply
New Developer
crisfromnova
Posts: 1
Registered: ‎09-18-2008
My Device: Not Specified

keyPressed() method from Canvas not called

Hi all,

 

I have a big problem with my application. I load my application in a simulator, it starts, but no key event is received.The methods keyPressed(), keyReleased() and keyRepeated() are not called. Do you know what can cause this?

Please use plain text.
Administrator
MSohm
Posts: 14,297
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: keyPressed() method from Canvas not called

At what level are you listening for the key events?  From the application, screen, manager or field level?  Are there any screen elements that could be capturing the key events before your listener can capture them?
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.