开发者

Adding a new line in a textArea with Appcelerator Titanium for iPhone

开发者 https://www.devze.com 2023-03-12 19:40 出处:网络
I have tried both Titanium.UI.RETURNKEY_DEFAULT and Titanium.UI.RETURNKEY_NEXT, but neither will add a new line in the text area. Titanium.UI.RETURNKEY_DEFAULT just closes the keyboard.

I have tried both Titanium.UI.RETURNKEY_DEFAULT and Titanium.UI.RETURNKEY_NEXT, but neither will add a new line in the text area. Titanium.UI.RETURNKEY_DEFAULT just closes the keyboard.

I see that there was a related bug report here - http://jira.appcelerator.org/browse/TIMOB-470?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#issue-tabs

It is marked as fixed, but doesn't seem to have been added 开发者_开发百科to the release I'm working with.

Does anyone have a work around for this? Thanks!!


Try to add this property to your TextArea:

suppressReturn: false

I tested this with iPhone and can confirm that it works.

0

精彩评论

暂无评论...
验证码 换一张
取 消