Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-13542

Android: single click on a textField does not open the soft keyboard

    Details

      Description

      Problem description

      When clicking on a non-focused TextField, the soft keyboard is not automatically shown.

      Not reproducible with TiSDK 3.0.2 GA - Regression

      Steps to reproduce

      1. Create a new project with two text fields/ text areas (see sample code)
      2. Run the project
      Result: first text field is focused by default
      3. Click on the second field
      Result: second field get focused, but the soft keyboard does not show
      4. Click on the second field again
      Result: soft keyboard is now shown
      5. Click on the back button and then on the first field
      Result: soft keyboard is hidden, then clicking on the first field only the focus and the i-beam is moved, but no soft keyboard is shown. User has to click again on the field to have the keyboard being displayed.

      Sample code

      var win = Titanium.UI.createWindow({  
          title:'Tab 1',
          backgroundColor:'white'
      });
       
       
      var view = Ti.UI.createView({
      	width: '80%',
      	height: '80%',
      	backgroundColor:'blue',
      	top:0
      })
       
      var tf = Ti.UI.createTextField({
      	width:200,
      	top: 10,
      	height:Ti.UI.SIZE,
      	borderColor:'black',
      	borderRadius:5,
      	// backgroundColor:'white',
      });
       
      var ta = Ti.UI.createTextArea({
      	width:200,
      	height:Ti.UI.SIZE,
      	top:100,
      	// backgroundColor:'white',
      	borderColor:'black',
      	borderRadius:5,
      });
       
      view.add(tf);
      view.add(ta);
       
      win.add(view);
       
      win.open();
       

        Attachments

          Activity

            People

            • Assignee:
              hpham Hieu Pham
              Reporter:
              fcasali Federico Casali
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-16233
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration