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
Developer
WesleyT
Posts: 206
Registered: ‎07-02-2010
My Carrier: Vodacom
Accepted Solution

overriding keyCharUnhandled menu not showing.

I am having a problem when overriding keyCharUnhandled the menu item does not show.

This is what i would like to achive.

 

 

public boolean keyCharUnhandled(char key, int status, int time) 
	{		
		char escape = Characters.ESCAPE;
		if(key == escape)
		{
			// Push new screen
		}
		else
		{
			// Handle as normal
		}			
	}

I have read many posts but i can't get the definate answer. Something was said about calling super. But what syntax should i use to do this ?

 

Regards

 

 

Please use plain text.
Developer
simon_hain
Posts: 15,558
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: overriding keyCharUnhandled menu not showing.

return super.keyCharUnhandled in the handle as normal part

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
WesleyT
Posts: 206
Registered: ‎07-02-2010
My Carrier: Vodacom

Re: overriding keyCharUnhandled menu not showing.

Thanks Simon.

Please use plain text.