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

New Developer
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?

BlackBerry Development Advisor
Posts: 15,852
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
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.