[TIMOB-1070] iOS: Numeric and phone keypads have no return key and can't be easily dismissed on iPhone
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | None |
| Status | Closed |
| Resolution | Won't Do |
| Resolution Date | 2020-02-12T11:35:41.000+0000 |
| Affected Version/s | Release 1.6.0, Release 3.0.0 |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | api |
| Reporter | Jeff Haynie |
| Assignee | Ingo Muschenetz |
| Created | 2011-04-15T02:43:09.000+0000 |
| Updated | 2020-02-12T11:35:41.000+0000 |
Description
numeric and phone keypads have no return key
see discussion here:
http://developer.appcelerator.com/question/30821/add-a-done-button-to-phone-keyboard#65051"> http://developer.appcelerator.com/question/30821/add-a-done-button-...
possible solution suggested here:
http://stackoverflow.com/questions/584538/how-to-show-button-done-on-number-pad-on-iphone"> http://stackoverflow.com/questions/584538/how-to-show-button-done-o...
valid, has testcase
Test code:
var win = Ti.UI.createWindow({ backgroundColor: 'white' }); var textArea = Ti.UI.createTextArea({ borderWidth: 2, borderColor: '#bbb', borderRadius: 5, color: '#888', font: {fontSize:20, fontWeight:'bold'}, keyboardType: Ti.UI.KEYBOARD_NUMBER_PAD, returnKeyType: Ti.UI.RETURNKEY_GO, textAlign: 'left', value: 'I am a textarea', top: 60, width: 300, height : 70 }); win.add(textArea); win.open();Hi guys, any news on this? returnKeyType is not working for Ti.UI.KEYBOARD_TYPE_PHONE_PAD... Thanks
Won't fix as natively it isn't supported. The proper native method of doing this is adding a toolbar to the textfield.