Problem description
When setting returnKeyType on a TextArea, the default return type is shown anyway.
Steps to reproduce
Use the following code to see the issue:
var win = Ti.UI.createWindow({
backgroundColor: "black"
});
var txt = Ti.UI.createTextArea({
returnKeyType: Ti.UI.RETURNKEY_SEARCH,
left: 10,
right: 10,
top: 10,
height: 300
});
win.add(txt);
win.open();
Note
This works in native, although you cannot go to other lines. To enable it, the element should have:
android:inputType="textImeMultiLine"
PR:- https://github.com/appcelerator/titanium_mobile/pull/4544
Verified the fix with: Appc-Studio: 3.2.0.201310100354 Sdk:3.2.0.v20131009134844 alloy:1.2.2 npm:1.3.2 titanium:3.2.0 titanium-code-processor:1.0.3 Device:Google Nexus 7(v4.3),ipodTouch1(v7.0) Xcode: 5 returnKeyType working for TextArea. Checked with type "Ti.UI.RETURNKEY_SEARCH"
Another test case:
Which was fixed by https://github.com/appcelerator/titanium_mobile/pull/4825
Reopen the ticket since this fix is reverted (https://github.com/appcelerator/titanium_mobile/pull/5202, https://github.com/appcelerator/titanium_mobile/pull/5208).
This behavior change caused a lot of complaints in the community, so we've reverted the behavior. If a user wishes to have this back again, they will need to re-add the code we've removed in a custom build of the SDK.
Why don't you update your documentation that returnKeyType doesn't work with TextArea in android? http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.UI.TextArea - here we can see that this property is supported in Android. But this is fake!
[~bhatfield] Can you please update the docs?
[~ingo] The docs have still not been updated on this I am sure this could and should have been achieved in the last 7 months time. The ticket is marked as closed so guessing this has fallen through the cracks.
[~core13], actually, this should have been addressed by TIDOC-1754.
Closing ticket as the issue will not fix and with reference to the above comments.