Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-83] textArea issues

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:51:55.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterSamir
AssigneeBlain Hamon
Created2011-04-15T02:23:28.000+0000
Updated2011-04-17T01:51:55.000+0000

Description

For textArea objects, the event listener below doesn't blur on return, but inserts a newline.
Also, the borderStyle property doesn't round the corners.

var tfield = Titanium.UI.createTextArea({
    id:'text_field',
    returnKeyType:Titanium.UI.RETURNKEY_DEFAULT,
    enableReturnKey:true,
    keyboardType:Titanium.UI.KEYBOARD_ASCII,
            borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,
});
tfield.addEventListener('return',function(e){
    tfield.blur();
});

Comments

  1. Blain Hamon 2011-04-15

    The borderstyle of rounded only happens on textField, not on textArea. (I don't know why, either. It's something that the iPhoneOS designers chose.) To simulate rounding, have rounded borders outside of the text area.

    Leaving as open in order to allow for both 'newline' editing functionality in textAreas as well as return events.

  2. Blain Hamon 2011-04-15

    The textarea newline functionality has been long implemented by now. Closing.

JSON Source