How do I have access to the number pad of the cell phone?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By alfredh

I’m using Line Edit on a cell phone, but when I type something, the general keyboard of the cell phone appears. I would like the numeric keyboard to appear (without letters). Thanks

:bust_in_silhouette: Reply From: skysphr

Try using a SpinBox instead of LineEdit.

(I haven’t tested it but it would make sense to work)

:bust_in_silhouette: Reply From: gnumaru

I haven’t tested the SpinBox mentioned by skysphr, but it seems that the virtual keyboard shown by OS.show_virtual_keyboard(), the same used by LineEdit and TextEdit, currently cannot be ‘configured’ in any way.

But there is an open proposal (openned on Sep 14, 2020) specifically for allowing to set the virtual keyboard type: