Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2993] Android Bug: Search TextField produces duplicate RETURN events

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2012-08-09T00:03:10.000+0000
Affected Version/sn/a
Fix Version/sRelease 2.0.1
ComponentsAndroid
Labelsmodule_textfield, qe-testadded
ReporterAlan Leard
AssigneeNeeraj Gupta
Created2011-04-15T03:34:20.000+0000
Updated2012-08-10T10:29:59.000+0000

Description

Reference Ticket: http://developer.appcelerator.com/helpdesk/view/69271">http://developer.appcelerator.com/helpdesk/view/69271

Test Code:

var mywin = Ti.UI.createWindow();


var tf1 = Ti.UI.createTextField({

top: 50,
left: 10, 
height: 35, 
width: 250,
returnKeyType: Ti.UI.RETURNKEY_SEARCH,  //causes duplicate (2) 'return' interrupts in Android
font: {fontSize: 16, fontWeight: 'bold', fontFamily: 'Helvetica Neue'},
backgroundColor:'white'



});
var tf2 = Ti.UI.createTextField({
top: 100, left: 10, height: 35, width: 250,
font: {fontSize: 16, fontWeight: 'bold', fontFamily: 'Helvetica Neue'},
backgroundColor:'white' });



tf1.addEventListener('return', function(e) {
Ti.API.info('RETURN: src=' + e.source + ', type=' + e.type);



}); tf2.addEventListener('return', function(e) {
Ti.API.info('RETURN: src=' + e.source + ', type=' + e.type);



}); mywin.add(tf1); mywin.add(tf2);
mywin.open();

Comments

  1. Junaid Younus 2012-05-14

    Tested with 2.0.1GA2 on a Samsung Galaxy S2 (2.3.6), unable to reproduce the issue. Ticket closed.
  2. Evgenii Tcarev 2012-07-16

    Closing as fixed. Tested with:
 Titanium Studio, build: 2.1.1.201207121732 
Titanium SDK: 2.2.0.v20120716114111 Device: LG-V909 Android (3.1)
  3. Shyam Bhadauria 2012-08-09

    Re-opening to edit label

JSON Source