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

Android: Textfield:Soft keyboard is not displayed after focus event fired,one more click is needed for its display.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 2.1.0, Release 3.1.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      Tested with Titanium SDK: 2.1.0.v20120621184154
      Tested with Titanium  Studio: 2.1.0.201206211609
      Device - Android 2.2.2 LG-P970,Android 4.0 samsung galaxy nexus.
      Machine OS - MAC 10.7.3

      Description

      This is not a regression. It exists as far as 1.8.2
      Steps to reproduce:
      1) Use the below code:

      var win = Ti.UI.createWindow();
      win.backgroundColor= 'red';
       
      		var tf = Titanium.UI.createTextField({
      				backgroundColor: "#fff",
      				width : 250,
      				height : 80,
      				focusable : true,
      			});
      		win.add(tf);
      			
      		tf.addEventListener('focus', function() {
      				alert('Focus fired');
      			});
      win.open();	
      

      It creates a textfield on window with its focusable property to true.
      2) Run the app.

      Expected result:
      The soft keyboard should be displayed with the app running.

      Actual result:
      No soft keyboard is displayed unless user clicks on textfield.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sbhadauria Shyam Bhadauria
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code