Flex Prevent Closed Keyboard Closure

I have an AIR mobile app with a simple location:

<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>

The application is configured to resize when the soft keyboard is opened by setting resizeForSoftKeyboard = "true" in the main application. TextArea uses the Flex 4.6 skin by default.
My problem is that if the user opens the keyboard by entering text in my texArea, he will not be able to press the buttons under TextArea, because as soon as he tries to click the button, the soft keyboard will drop (because its focus is from TextArea?) And immediately opens again (because the mouseDown position is now higher than TextArea?).

How can I prevent the soft keyboard from closing so the user can press buttons between TextArea and the keyboard?

thank

+5
2

. , :

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
           xmlns:s="library://ns.adobe.com/flex/spark" applicationDPI="320" resizeForSoftKeyboard="true">
    <s:layout><s:VerticalLayout /></s:layout>

    <s:TextArea width="100%" height="100%" />

    <s:HGroup width="100%" >
        <s:Button label="button" click="trace('clicked')"/>
        <s:Button label="button" click="trace('clicked')" />
        <s:Button label="button" click="trace('clicked')" />
    </s:HGroup>
</s:Application>

, , , ( ), .

, - , ? , .

+1

, , , , .. .

( havnt ), event.preventDefault()

0

All Articles