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

Android: Textfield:Focus event is fired when soft keyboard 'done' button is pressed.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 2.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 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.
      It occurs only on android 4.0.2 samsung galaxy nexus.
      This is working fine on android 2.2 and android 3.2

      Steps to reproduce:
      1) Use the code below:

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

      2) Run the app.
      3) Click 'ok'on the alert displayed and again click the textfield.
      4) Press 'done' on the soft keyboard.

      Expected result:
      2) After step 2,app should be running and an alert should be displayed stating 'Focus fired'.
      3) The soft keyboard should be invoked.
      4) The soft keyboard should get dismissed without any alerts.

      Actual result:
      2) After step 2,app should be running and an alert should be displayed stating 'Focus fired'.
      3) The soft keyboard should be invoked.
      4) The soft keyboard should get dismissed but a focus alert 'Focus fired' is displayed.

      Focus event should not get fired.

        Attachments

          Activity

            People

            • Assignee:
              shameerj Shameer Jan
              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-13863
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code