[TIMOB-8488] iOS: Setting TextField's enableReturnKey to true disables the return key
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-05-22T11:21:02.000+0000 |
Affected Version/s | Release 2.0.0, Release 1.8.2 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Daniel Sefton |
Assignee | Neeraj Gupta |
Created | 2012-02-04T17:06:41.000+0000 |
Updated | 2017-03-23T21:40:29.000+0000 |
Description
The following code reveals a keyboard with the return key disabled:
var win = Ti.UI.createWindow({
backgroundColor: 'red'
});
win.open();
var myTextField = Ti.UI.createTextField({
backgroundColor:'white',
enableReturnKey:true,
width:'100',
height:'20'
});
win.add(myTextField);
win.addEventListener("open", function(event, type) {
myTextField.focus();
});
Had me scratching my head for a bit :)
This issue latest notification was not sent due to JIRA mail setting. Fixed now. Please check the issue for latests changes.
According to our documentation, this is the expected behavior: http://docs.appcelerator.com/titanium/2.0/index.html#!/api/Titanium.UI.TextField-property-enableReturnKey 'If true, the return key is disabled when this text field is empty, and automatically enabled as soon as the user types any text in the field.' Tested with 2.0.1GA2 on a Samsung Galaxy S2 and on the iOS simulator, the behavior on both platforms is consistent. Ticket closed.
Closing ticket as invalid with reference to the previous comments.