2 Replies Latest reply on Jan 4, 2012 9:04 AM by FlexySurge

    4.6 Mobile iOS SoftKeyboard Hiding

    FlexySurge

      Hey everyone,

       

      So i'm new to not only this community but also Flex programming. I'm working on a app project at my work using FB. My question is, about the Softkeyboard still coming up even thougtht the event was canceled.We were recently using FB 4.5 and the following Textinput would call up a custom keyboard that we made and prevent the softkeyboard from coming up:

       

      <s:TextInput width="175" id="txtICDOB"  restrict="0-9 /" maxChars="10" softKeyboardActivating="preventActivate(event)"/>

       

      ////

      ////

       

         private function preventActivate(event:SoftKeyboardEvent):void

         {

          event.preventDefault();

          numericPad.buttonsHolder.visible = true;

          numericPad.buttonsHolder.addEventListener(FlexEvent.HIDE, resizeScreen);

          scrollbar.percentHeight = 75;

         }

       

       

       

      ///////

      //////

       

      We recently upgraded to 4.6 and the event.preventDefault(); no longer works. Now both the custom numericPad and softkeyboad pop up and i can't seem to figure out why even.preventDefault(); no long works. Any help would be appreciated.

       

       

          <s:TextInput width="175" id="txtICDOB"  returnKeyLabel="next" enter="changeField(txtICAddress)" restrict="0-9 /" maxChars="10" softKeyboardActivating="preventActivate(event)"/>

      ////

      ////

       

      private function preventActivate(event:SoftKeyboardEvent):void

      {

      event.preventDefault();

      numericPad.buttonsHolder.visible = true;

      numericPad.buttonsHolder.addEventListener(FlexEvent.HIDE, resizeScreen);

      scrollbar.percentHeight = 75;

      }

       

       

      ///////

      //////