Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25008] iOS: Remove deprecated Ti.UI.KEYBOARD_* constants in favor of TI.UI.KEYBOARD_TYPE_*

GitHub Issuen/a
TypeImprovement
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2018-11-20T10:41:42.000+0000
Affected Version/sn/a
Fix Version/sRelease 8.0.0
ComponentsiOS
LabelsTextArea, TextField, breaking-change, ios, keyboard
ReporterHans Knöchel
AssigneeVijay Singh
Created2017-07-21T19:48:57.000+0000
Updated2018-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.

Comments

  1. Vijay Singh 2018-11-14

    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();
       
  2. Jan Vennemann 2018-11-15

    CR for iOS PR passed
  3. Josh Longton 2018-11-20

    *FR Passed*
  4. Samir Mohammed 2018-11-23

    *Closing ticket.* Verified fix in SDK version: 8.0.0.v20181121114345 Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/10465

JSON Source