[TIMOB-83] textArea issues
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:51:55.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Samir |
Assignee | Blain Hamon |
Created | 2011-04-15T02:23:28.000+0000 |
Updated | 2011-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();
});
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.
The textarea newline functionality has been long implemented by now. Closing.