Closed sern19 closed 5 months ago
@sern19 Interesting! What version of the package are you using? Can you test out the example scene? It should have examples of using Decimal, Integer, and Pin.
Sure, I'm using version 0.3.3, I've modified sample project and reproduced the issue: CustomInputField.zip
If we track code execution the reason is pretty clear, so let's assume we have an input field with a custom content type set up like this:
Which is basically the same as PIN content type (to simplify things). Keyboard type is set as Nubmer Pad.
Next to the Input field, TMPInputFieldTextReceiver behaviour is attached. Now we can track what happens.
A proper way to handle the custom content type would be to check input field keyboard type when updating keyboard layout here: https://github.com/magicleap/MagicLeapXRKeyboard/blob/449a48080bab6614639082be8c8f11c755a0c8a0/Packages/MagicLeapXRKeyboard/Runtime/Scripts/Keyboard/Keyboard.cs#L227-L230
@ababilinski Any updates on this issue? Would this be considered as a bug and fixed later or is it by design and will not be handled?
@sern19 Did the new branch fix your issue?
@ababilinski Sorry for late reply, I can confirm that #4 fixes this issue
If we set input type content type to custom and then manually select the keyboard type to e.g. Number Pad, TMPInputFieldTextReceiver component still spawns full keyboard (letters).
Expected behaviour is to behave the same way as the content type set to integer number or PIN.