[TIMOB-2993] Android Bug: Search TextField produces duplicate RETURN events
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-08-09T00:03:10.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 2.0.1 |
Components | Android |
Labels | module_textfield, qe-testadded |
Reporter | Alan Leard |
Assignee | Neeraj Gupta |
Created | 2011-04-15T03:34:20.000+0000 |
Updated | 2012-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();
Tested with 2.0.1GA2 on a Samsung Galaxy S2 (2.3.6), unable to reproduce the issue. Ticket closed.
Closing as fixed. Tested with: Titanium Studio, build: 2.1.1.201207121732 Titanium SDK: 2.2.0.v20120716114111 Device: LG-V909 Android (3.1)
Re-opening to edit label