Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8488] iOS: Setting TextField's enableReturnKey to true disables the return key

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2012-05-22T11:21:02.000+0000
Affected Version/sRelease 2.0.0, Release 1.8.2
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterDaniel Sefton
AssigneeNeeraj Gupta
Created2012-02-04T17:06:41.000+0000
Updated2017-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 :)

Comments

  1. Nikolai Derzhak 2012-02-06

    This issue latest notification was not sent due to JIRA mail setting. Fixed now. Please check the issue for latests changes.
  2. Junaid Younus 2012-05-22

    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.
  3. Lee Morris 2017-03-23

    Closing ticket as invalid with reference to the previous comments.

JSON Source