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

Adobe AIR Development

Reply
New Contributor
Posts: 7
Registered: ‎05-10-2011
My Device: Playbook
My Carrier: Air Developer

Showing keyboard interface

Hi all,

I wonder if is there any other way to show the keyboard interface, without using theTextInput. I searched around here but got no result, only one(http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/QNX-Keyboard-Control-UNOFFICIAL/t...) but did not work.

Could anyone help me?

Thanks

New Contributor
Posts: 7
Registered: ‎05-10-2011
My Device: Playbook
My Carrier: Air Developer

Re: Showing keyboard interface

Sorry guys,

In the simulator did not work, but testing in the Device worked perfectly.

Thanks

Developer
Posts: 116
Registered: ‎11-18-2010
My Device: BlackBerry PlayBook
My Carrier: null

Re: Showing keyboard interface

Hello.
You can set at any class that inherits from InteractiveObject (a TextField for example) a property:

 

needsSoftKeyboard

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/InteractiveObject.h...

 

to "true" and in case You need to get a virtual keyboard just call

 

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/InteractiveObject.h...

requestSoftKeyboard() method


var textField:TextField = new TextField();
textField.needsSoftKeyboard = true;

******************************************

textField.requestSoftKeyboard();

 The only thing I dont know is how to get a height of the virtual keyboard. I hardcoded this value but as we can see at version OS 2.0 it is smaller then before.