Skip to main content
Participating Frequently
May 9, 2012
Question

Android, StageText and the soft keyboard

  • May 9, 2012
  • 2 replies
  • 2430 views

How to keep the soft keyboard opened? I have a simple text form (1 text field as StageText, 1 button and a scrolling area, similar to sms chat application).

Click on the button or on the scrolling area causes a focus lost in StageText instance and the soft keybord closing (it causes app resize and other problems).

I tried various variants with assignFocus() function, using events SOFT_KEYBOARD_DEACTIVATE, FOCUS_OUT, MOUSE_DOWN.

Also, I tried to call assignFocus() with pause and several times during some period, I tried to move focus to other field and so on...

It was working partially if I created enterFrame event with assignFocus(), but it makes soft keyboard buttons to work very slow and soft keyboard closes when I remove enterFrame event.

This problem is for Android only, iOS version works just fine with MOUSE_DOWN -> assignFocus().

I'm using Flash CS 5.5 and CS 6, AIR 3.2 and AIR 3.3 beta and HTC Sensation with Android 2.3.5 for tests.

Also, I found that SoftKeyboardType.PUNCTUATION is not working with Android soft keyboard.

This topic has been closed for replies.

2 replies

Inspiring
September 30, 2013

There are definitely some bugs with Android/textfields/softkeyboard.... there's an already existing bug I'm trying to get people to vote for in regards to textfields on Android. Hopefully once (if ever) they fix this bug, other bugs related to it will go away as well.

Please vote: https://bugbase.adobe.com/index.cfm?event=bug&id=3627285

http://forums.adobe.com/thread/1281872?tstart=0

Participating Frequently
September 25, 2013

This still happens in Air 3.9. I have submitted a bug report:

https://bugbase.adobe.com/index.cfm?event=bug&id=3639578

Has anyone found a better work around to this?