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

Android: blur event not called when keyboard is hidden

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 2012 Sprint 26
    • Component/s: Android
    • Labels:
      None
    • Environment:

      Android
      SDK 2.1.4

    • Story Points:
      5
    • Sprint:
      2014 Sprint 25 SDK, 2015 Sprint 01 SDK, 2015 Sprint 02 SDK

      Description

      Problem description

      When a TextArea is focused, and the user clicks the back button to hide the soft keyboard, the blur event is not fired. It is not also possible to use the 'android:back' event, as it is not fired when hiding the keyboard.

      Steps to reproduce

      • Use the following code to test the bug.
      • Click on the black window to open a second one with a TextArea
      • Click on it to show the keyboard
      • Hit the back button: the 'blur' and 'android:back' events are not fired when keyboard is being hidden

       
      // Create a window
      var root = Ti.UI.createWindow({
      	backgroundColor : 'black',
      	modal: true
      });
       
      root.addEventListener('click', function() {
          var win = Ti.UI.createWindow({
              backgroundColor : 'white',
              modal: true
          });
          
          var toolbar = Titanium.UI.createTextArea({
           height: 37,
           width: 200,
           font: {fontSize:16,fontFamily:'ARIAL', fontWeight:'solid'},
           color: '#000',
           borderWidth: 1,
           borderColor: '#828281',
           borderRadius: 12,
           suppressReturn: false,
           scrollable: false
          });
          
          toolbar.addEventListener('blur', function() {
              alert('blurrrred');
          });
          
          win.addEventListener('android:back', function() {
              alert('baaaack');
          });
          
          win.add(toolbar);
          win.open();    
      })
       
      root.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dcassenti Davide Cassenti
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code