[TIMOB-20366] No matter which keyboard I define the default keyboard shows
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2016-02-08T12:38:24.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android, iOS |
Labels | android, docs, ios |
Reporter | John Marott |
Assignee | Hans Knöchel |
Created | 2016-02-05T18:02:39.000+0000 |
Updated | 2017-03-22T21:46:12.000+0000 |
Description
No matter which keyboard I define only the default keyboard shows on Android and iOS devices.
Soft keyboard never shows on iOS simulator and Genymotion Emulator.
I enclose the console output.
The problem may be caused by this error that shows in the console output: [Error: Module version mismatch. Expected 46, got 14.]
I have tried everything I can possibly think of but as it seems without positive result. I attach a file holding the console output from a iOS simulator run as well as the very simple codebase.
Attachments
Does
Ti.UI.KEYBOARD_NUMBER_PAD
work? If so, the PR of [~apetkov] needs to be revisited. Also make sure you use Titanium Mobile 5.2.0 or later forTi.UI.KEYBOARD_TYPE_NUMBER_PAD
, all versions before useTi.UI.KEYBOARD_NUMBER_PAD
.Update: Both support team and reporter tested using Titanium Mobile 5.x which does not support
Ti.UI.KEYBOARD_TYPE_NUMBER_PAD
, yet. Anyway, we need to update [the docs](http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI-property-KEYBOARD_TYPE_NUMBER_PAD), which currently say, that the constant is already available in Titanium Mobile 0.8. [~apetkov] please fix. /cc [~cng], the docs update would make sense for 5_2_XWhether I use "Ti.UI.KEYBOARD_NUMBER_PAD" or "Ti.UI.KEYBOARD_TYPE_NUMBER_PAD" I get the same result. Only the Default keyboard is showing on devices and no soft keyboard is shown on the iOS simulator and the Genymotion emulator (Titanium SDK: 5.1.2.GA). John Marott
I just took the time and revalidated it myself. Test code:
Result (correct): http://abload.de/img/simulatorscreenshot085pum3.png Closing as invalid, please check your code!
I tested your Classic example and it worked on iOS devices as you state. But as you can see from the files I included in the Bug report I tested in Alloy. Just like you I just defined a text field and the keyboard to use with no additional code. This still does not work. /John Marott
[~fmiao] Do we hardcode any keyboard related constants in Alloy? Looks suspicious!
[~john@marott.dk], the test app you attached need to be modified:
You are absolutely right. Without quotes it works like it should. I really thought that I had tested without quotes. Now I realize that the problem can be referred back to the Designer. The Designer seems to put quotes around everything so even if I edit the TSS file without quotes around keyboard constants, as soon as I make changes using the Designer the Designer will put quotes right back. This made me believe that the keyboard constants should be enclosed in quotes. Sorry for the inconvenience and thank you so much for your efforts. /John Marott
Closing ticket as invalid with reference to previous comments.