05-01-2011 11:08 AM
Is there any way to open the keyboard from code? I have search this forum and the API, but I can't seem to find any method.
Thanks in advance.
Solved! Go to Solution.
05-01-2011 12:29 PM
We used to be able to do it using an undocumented imfConnection approach (searching should find my post on that) but I'm pretty sure that option has been eliminated in 1.0.1. It was never a good idea to use it in the first place. For now, I don't believe there's any supported approach except putting focus into a text field.
05-01-2011 12:48 PM
peter9477 wrote:
For now, I don't believe there's any supported approach except putting focus into a text field.
Even this does not appear to work - at least with QNX TextInput.
05-06-2011 02:46 PM
Anyone have a solution for this as of yet, Its a pretty ridiculous issue to be having. Why can't developers have the power to call the keyboard when they want it?
05-06-2011 02:52 PM
05-06-2011 03:18 PM
I tried forcing the focus to the text input object. Still doesnt work. Maybe I could simulate the gesture that displays the keyboard?
05-07-2011 07:44 PM
The next version of Adobe AIR (2.6) has APIs that let you programmatically show & hide the soft keyboard. I assume these will work on the PlayBook once RIM rolls out AIR 2.6 support.
Here's a blog post listing all the new AIR features: http://blogs.adobe.com/cantrell/archives/2011/03/e
- Peter
05-07-2011 10:43 PM
These are working fine in our app:
05-09-2011 09:37 AM
05-09-2011 09:41 AM - edited 05-09-2011 09:49 AM
They work on the device which is all that matters ![]()
To avoid runtime errors on Desktop, just enclose these in a function;
if(onDevice){
showKeyboard(true);
}
protected function showKeyboard(value:Boolean):void {
(value)? IMFConnection.imfConnection.showInput() : IMFConnection.imfConnection.hideInput();
}