AIR - prevent soft keyboard closing?
Hello
I have a mobile AIR app with a simple layout:
<s:View ...>
<s:layout><s:VerticalLayout /></s:layout>
<s:TextArea width="100%" height="100%" />
<HGroup width="100%" >
<s:Button label="button" />
<s:Button label="button" />
<s:Button label="button" />
</HGroup>
</s:View>
The application is set to resize when the soft keyboard opens by setting resizeForSoftKeyboard="true" in the main app. The textArea uses the default Flex 4.6 skin.
My problem is, that if the user opens the keyboard by typing text into my texArea, he will be unable to click the buttons below the TextArea, because as soon as he tries to click a button the soft keyboard lowers (because the focus it out of the TextArea) and immediately opens again (because the mouseDown position is now above the TextArea).
I think this is the order of events: 1. textArea loses focus 2. keyboard goes goes down, keyboardDeactivate event dispatched. 3. mouseDown registers on the (expanded) textArea, so keyboard comes back up.
How can i prevent the soft keyboard from closing, so the user is able to click the buttons between the TextArea and the keyboard?
Note: SkinnablePopupContainer uses some hack to solve this, i just cant figure out how..
Thanks