Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25580] Android: Return event is fired twice for textarea

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2017-12-05T19:21:08.000+0000
Affected Version/sRelease 7.0.0
Fix Version/sRelease 7.0.0
ComponentsAndroid
Labelsqe-7.0.0, regression
ReporterLokesh Choudhary
AssigneeGary Mathews
Created2017-12-01T23:58:13.000+0000
Updated2018-08-06T17:49:24.000+0000

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.

Comments

  1. Gary Mathews 2017-12-04

    master: https://github.com/appcelerator/titanium_mobile/pull/9652
  2. Lokesh Choudhary 2017-12-04

    -FR Passed.- -Waiting for merge to be enabled.-
  3. Gary Mathews 2017-12-04

    7_0_X: https://github.com/appcelerator/titanium_mobile/pull/9653
  4. Lokesh Choudhary 2017-12-05

    FR Passed. Waiting for merge to be enabled.
  5. Lokesh Choudhary 2017-12-05

    Backport 7.0.0 PR merged.
  6. Eric Merriman 2018-08-06

    Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.

JSON Source