Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13871] Android: returnKeyType does not work for textFied and textArea

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2013-05-29T14:05:35.000+0000
Affected Version/sRelease 2.1.4, Release 3.0.2, Release 3.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, supportTeam
ReporterMuhammad Adnan
AssigneeSunila
Created2013-01-01T13:09:00.000+0000
Updated2017-03-24T17:51:33.000+0000

Description

Problem Description

Even if you modify the returnKeyType, it won't work (it will show the arrow symbol always -- shows default --).

Steps to reproduce

1. Create a new mobile Project 2. Paste this as app.js
var win = Ti.UI.createWindow({
    backgroundColor : 'white', layout : "vertical"
});
win.open();
 
var t1 = Ti.UI.createTextArea({
    left : 0, right : 0, keyboardType : Ti.UI.KEYBOARD_ASCII, returnKeyType : Ti.UI.RETURNKEY_DEFAULT
});
var t2 = Ti.UI.createTextArea({
    left : 0, right : 0, keyboardType : Ti.UI.KEYBOARD_ASCII, returnKeyType : Ti.UI.RETURNKEY_DONE
});
var t3 = Ti.UI.createTextArea({
    left : 0, right : 0, keyboardType : Ti.UI.KEYBOARD_ASCII, returnKeyType : Ti.UI.RETURNKEY_GO
});
var t4 = Ti.UI.createTextArea({
    left : 0, right : 0, keyboardType : Ti.UI.KEYBOARD_ASCII, returnKeyType : Ti.UI.RETURNKEY_NEXT
});
 
win.add(t1);
win.add(t2);
win.add(t3);
win.add(t4);
3. Click on any textarea, and you won't see any change.

Extra information

https://developer.appcelerator.com/question/152424/android-display-next-or-done-on-keyboard

Attachments

FileDateSize
app.js2013-01-01T13:09:00.000+00001308

Comments

  1. Muhammad Adnan 2013-01-02

    Strange to know it works when i tested on Google Android API 2.3.3 But never works with Android API 2.3.3
  2. Eduardo Gomez 2013-01-28

    The google API includes Google Maps and other Google-specific libraries. The Android one only includes core android libraries. Can you please test on actual device? OS 2.2+ would be great in order to get a bug fix quicker. Hope hearing from you soon, Muhammad. Edit: Tested on Razr 2.3.5 with 3.0 SDK Branch
  3. Eduardo Gomez 2013-02-02

    Please test and complete [Jira Checklist](http://docs.appcelerator.com/titanium/latest/#!/guide/How_to_Submit_a_Bug_Report-section-29004732_HowtoSubmitaBugReport-JIRATicketChecklist) with required info.
  4. Mauro Parra-Miranda 2013-05-15

    Will complete the fields and upgrade it.
  5. Sunila 2013-05-29

    Tested with 3.2.0 and it works with textField. For textArea, since it can have multiline, Android will show 'return' to enter the carriage return, this is an Android behavior.
  6. Lee Morris 2017-03-24

    Closing ticket as invalid with reference to the above comments.

JSON Source