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

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Posts: 22
Registered: ‎10-30-2008
My Device: Not Specified

Force virtualkeyboard layout



How can I force HW_LAYOUT_TOUCHSCREEN_12 in my application without having a textfield? I have only a FullScreen and I want to show the keyboard with only the digits.



Posts: 856
Registered: ‎07-15-2008
My Device: Passport
My Carrier: Bell

Re: Force virtualkeyboard layout

Unfortunately there is not an API for this. You might try showing the keyboard and using the EventInjector to input a lock on the ALT key (!,123) but that may not work either.



Tim Windsor
Open Source Technical Lead
New Developer
Posts: 4
Registered: ‎08-05-2009
My Device: Not Specified

Re: Force virtualkeyboard layout

Stealing this thread...

I have a very similar problem and hope that you can give me some ideas on how to move forward.


I have a FullScreen screen where I want to receive all keypresses. Using a combination of keyChar (for symbol keys) and keyDown/keyUp works good for me. The only problem is the virtual keyboard layout, hence this post. 


I want the keyboard layout to reflect the type of input that I expect. Some times it is an URL type of field, some times it might be a number and so on. Right now I feel stuck, and the only solutions I come up with are the following: 

1. Use the virtual keyboard the way I do. I will get keyDowns but the keyboard layout will always be the same

2. Use blackberry fields for input which will give me the keyboard layout I want. Problem is, then I won't get keyChar/keyDown events the way I want (since I won't get keyDown etc when SureType takes over, as discussed in other threads).  

Any suggestions? Alternative solutions? Corrections? Any help would be appreciated.