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

Android: Return event is fired twice for textarea

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 7.0.0
    • Fix Version/s: Release 7.0.0
    • Component/s: Android
    • Environment:
    • Story Points:
      2
    • Sprint:
      2017 Sprint 24 SDK

      Description

      Steps to reproduce:

      1. Use the code below in your app.js:

      var win = Ti.UI.createWindow();
       
      var textArea = Ti.UI.createTextArea({
          value: 'TextArea',
          top: '20%',
          height: '30%',
          left: '10%',
          right: '10%'
      });
       
      textArea.addEventListener('return', function() {
          alert('return event fired');
      });
       
      win.add(textArea);
       
      win.open();
      

      2. Build for android device.
      3. After the app launches, click to focus the textarea.
      4. Hit the return key.

      Actual result:

      1. You will get two alerts "return event fired".

      Expected result:

      1. You should get only one return event & one alert.

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              lchoudhary Lokesh Choudhary
              Reviewer:
              Joshua Quick
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code