Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

force keyboard reload between 2 textFields or textArea

Hi,

I have a little problem with keyboards load on textField focused (same thing with textArea)

I have a code like this :

    var textTask = Titanium.UI.createTextArea({
        height:100,
        width:300,
        top:70,
        font:{fontSize:13,fontFamily:'Heiti K'},
        textAlign:'left',
        appearance:Titanium.UI.KEYBOARD_APPEARANCE_ALERT,
        borderWidth:2,
        borderColor:'#ccc',
        borderRadius:5,
        keyboardToolbar:[flexSpace,but_begin,flexSpace,but_end,flexSpace,but_priority,flexSpace],
        keyboardToolbarColor: '#13386c',    
        keyboardToolbarHeight: 40

    });

    var textTitle = Titanium.UI.createTextField({
        height:25,
        top:30,
        width:300,
        font:{fontFamily:'Heiti K',fontWeight:'bold'},
        textAlign:'left',
        appearance:Titanium.UI.KEYBOARD_APPEARANCE_ALERT,
        borderWidth:2,
        borderColor:'#ccc',
        borderRadius:5,
        backgroundColor:"#fff",
        paddingLeft:10
    });

When i tap on my textField, normal keyboard apear, but when i tap on my textArea, the keyboard of previous field stay without my Toolbar, and vis versa (the toolBar stay when i focus my textField).

I saw similar questions, but not for this case (or i missed it ^^)

So i think if i force reload with something like "blur" or "focus" event, it will works fine, but this is a "heavy method"….

Can you see another way ?

Thank you for help ^^

— asked July 12th 2010 by Vivien Brissat
  • iphone
  • keyboards
  • textfield
  • toolbar
0 Comments

2 Answers

  • Did you ever solve this? I'm having the same sort of issue with Android development with the 1.4.1 SDK. So nothing automatic has been added apparently.

    I'm not using a custom keyboard toolbar. But one field uses the default keyboard and another is supposed to use the numeric. If you tap field A you get the alphanumeric keyboard, but tapping field B doesn't close that keyboard and open the numeric. he numeric keyboard doesn't automatically close and open the alpha when tapping fields in the other order.

    Tim

    — answered September 18th 2010 by Tim Poulsen
    permalink
    0 Comments
  • Hi Tim,

    I never found a solution for this problem, so i don't know. Maybe in future distribution…. :/

    Good luck ;)

    — answered September 20th 2010 by Vivien Brissat
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.