2 Replies Latest reply on May 22, 2012 1:28 PM by mshmyob

    Cannot get numeric soft keyboard for Playbook to work.

    mshmyob

      I cannot get the numeric softkeybard to activate for a textinput component in my Flex 4.6 mobile application for a BB Playbook.

       

      Here is what I have done (along with many other configurations):

       

      My app.xml

       

      <fullScreen>false</fullScreen> 
      <renderMode>cpu</renderMode>
      <softKeyboardBehavior>none</softKeyboardBehavior>

       

       

      My main app

       

      <s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"  
                             
      xmlns:s="library://ns.adobe.com/flex/spark"
                             
      firstView="views.View1"
                             
      applicationDPI="160"
                             
      splashScreenImage="SplashScreenImage"
                             
      resizeForSoftKeyboard="true">

      <fx:Declarations>
         
      <!-- Place non-visual elements (e.g., services, value objects) here -->
      </fx:Declarations>

      <!--  set up a home button on the views -->
      <s:navigationContent>
         
      <s:Button icon="@Embed('assets/home.png')" click="navigator.popToFirstView()"/>
      </s:navigationContent>
       

      </s:ViewNavigatorApplication>


       

       

      In my first view here is a sample textinput line

       

      <s:TextInput id="txtNumber" softKeyboardType="number" width="50%" restrict="0-9" textAlign="right"   enter="enterKeyHandlerFunction()"/> 

       

      I have also tried importing the flash.text.SoftKeyboardType I have also changed the above line to softKeyboardType="{SoftKeyboardType.NUMBER}"

       

      I am obviously doing something wrong or the numeric keyboard does not work for the PlayBook.

      Has anyone got it working for the PlayBook and if so do you have any ideas for me.

       

      Playbook has AIR 3.1

      I am in development and I package with captive runtime.  Desktop has AIR 3.2

       

      cheers,