Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3031] iOS: Textfield suppressReturn Documentation or Semantic Adjustments

GitHub Issuen/a
TypeNew Feature
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2012-06-28T23:10:21.000+0000
Affected Version/sn/a
Fix Version/sRelease 2.0.1
ComponentsiOS
Labels1.5.x, feature, ios, rplist
ReporterRick Blalock
AssigneeNeeraj Gupta
Created2011-04-15T03:35:07.000+0000
Updated2017-03-07T18:30:29.000+0000

Description

I'm not sure if this is to be filed as a bug, feature request, or just incomplete documentation. From using iOS I'd say hitting 'return' almost always blurs a textfield if suppressReturn is true but there could be cases where this is not desirable.

HD Ticket: http://developer.appcelerator.com/helpdesk/view/69651">http://developer.appcelerator.com/helpdesk/view/69651

Comments

  1. Junaid Younus 2012-06-28

     
       var win = Ti.UI.createWindow({ backgroundColor: 'white' });
       
       var textField = Ti.UI.createTextField({
           height: 60,
           top: 10,
           left: 10,
           width: 250,
           borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED,
           //suppressReturn: false
       });
       
       win.add(textField);
       win.open();
       
    Using the code above (TiSDK 2.0.2GA), when the suppressReturn property is commented out, it blur's the keyboard (default). Same if the property is set to true. If you set it to false, it doesn't blur it and instead adds a new line.
  2. Lee Morris 2017-03-07

    Closing ticket due to time passed.

JSON Source