[TIMOB-25008] iOS: Remove deprecated Ti.UI.KEYBOARD_* constants in favor of TI.UI.KEYBOARD_TYPE_*
| GitHub Issue | n/a |
|---|---|
| Type | Improvement |
| Priority | None |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2018-11-20T10:41:42.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 8.0.0 |
| Components | iOS |
| Labels | TextArea, TextField, breaking-change, ios, keyboard |
| Reporter | Hans Knöchel |
| Assignee | Vijay Singh |
| Created | 2017-07-21T19:48:57.000+0000 |
| Updated | 2018-11-23T11:50:15.000+0000 |
Description
We deprecated the Ti.UI.KEYBOARD_* constants in 5.4.0, in favor of the more clear Ti.UI.KEYBOARD_TYPE_* constants that also share parity with Android. In the release 8.0.0, we should get rid of those, so the core is more solid and clean.
I actually thought about doing it in 7.0.0 already (which would be legit), but let's keep it for one more major, since the actual legacy-code is not messing up the core and there might still be some apps using the old one when migrating from last year.
https://github.com/appcelerator/titanium_mobile/pull/10465 Test Case -
var win = Ti.UI.createWindow({ backgroundColor: '#fff' }); var btn = Ti.UI.createButton({ title: 'Trigger' }); btn.addEventListener('click', function() { // It should print null Ti.API.info(Ti.UI.KEYBOARD_PHONE_PAD); }); win.add(btn); win.open();CR for iOS PR passed
*FR Passed*
*Closing ticket.* Verified fix in SDK version:
8.0.0.v20181121114345Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/10465