florisboard icon indicating copy to clipboard operation
florisboard copied to clipboard

Allow to always display the main keyboard instead of number keyboard at number field

Open soybeansrabbitowl opened this issue 4 years ago • 3 comments

An example of a number field is on websites, like the GitHub site when you login you get a code by email (security reasons).

When you click on this number field you have to enter the code. But I don't like it when the number keyboard layout appears as default for number field.

There is no option in the settings that I can use the main keyboard also for number field. Maybe the problem can also be solved if in number keyboard there is a button to switch to main keyboard.

soybeansrabbitowl avatar Jan 30 '21 14:01 soybeansrabbitowl

Hmm strange why do you even need the default keyboard for number inputs? When an input field is marked as InputType.TYPE_CLASS_NUMBER by the target app or website, it means that it only accepts numeric-related inputs like numbers, dots, minus, etc. I am thus showing the numeric input layout, as this indicates that the app wants only numbers and should prevent you from inputting invalid characters. See https://developer.android.com/reference/android/text/InputType#TYPE_CLASS_NUMBER.

I guess I can add an override toggle for this behavior and just always show the default keyboard if absolutely necessary.

patrickgold avatar Jan 30 '21 17:01 patrickgold

Exactly an override toggle is enough for me.

I don't like the number input layout, because my real keyboard for the PC doesn't have one either, I type it all without extra number keyboard.

I find this behavior more pleasant and not disturbing in my way of working.

soybeansrabbitowl avatar Jan 30 '21 17:01 soybeansrabbitowl

I have just hit a snag in an app's date field where numerals were the only proper input (android:inputType="date") but FlorisBoard kept switching back to the alphabetic layout after every digit. This created 2-3 times more keypresses than needed just to enter 10 digits. Not using a numeric keyboard seems like a bug?

jmturner avatar Oct 14 '21 17:10 jmturner