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

Native Development

Reply
Highlighted
New Developer
Posts: 2
Registered: ‎06-20-2014
My Device: q10
My Carrier: telus

Set Keyboard mode to "ALT" on page load

Hello,

 

I'm developing in Cascades 1.2 for a Q10 using momentics

 

I have been trying to find out how to set the keyboard mode of the blackberry to the "ALT" mode for weeks. It's driving me insane. Im new to blackberry development and it is tough to figure out.

 

My application is really simple. I load up a Webview to a webpage. The webpage is mainly numeric in nature. If the user types 'w' on the keyboard, I want to send 1 to the webview instead of 'w'. I have been using the evaluateJava function to send this to the appropriate text input on the webpage. 

 

Is there any way to always have the keyboard in "ALT" mode? I have tried Keylisteners and I an capture the w and send the 1, but the w also gets sent  and i get 1w or w1. I cannot consume the w with return true. 

 

Any help with this would be great. 

New Developer
Posts: 2
Registered: ‎06-20-2014
My Device: q10
My Carrier: telus

Re: Set Keyboard mode to "ALT" on page load

I'm guessing this isn't doable and I should quit this app and make an android one instead.