system
October 26, 2021, 6:52am
1
Attention
Topic was automatically imported from the old Question2Answer platform.
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
system
October 26, 2021, 2:09pm
2
Reply From:
skysphr
Try using a SpinBox instead of LineEdit.
(I haven’t tested it but it would make sense to work)
system
October 26, 2021, 2:16pm
3
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:
opened 09:04AM - 14 Sep 20 UTC
closed 05:12PM - 04 Aug 22 UTC
topic:porting
topic:gui
platform:android
platform:ios
<!--
Please fill in *all* the questions below and don't remove any of them.
Pr… oposals not following the template below will be closed immediately.
-->
**Describe the project you are working on:**
Hey I am currently working on an Android interface application.
**Describe the problem or limitation you are having in your project:**
I have the user inserting multiple names in a list of LineEdits and want to ease to jump from one edit to the next.
But therefore I need a NOTIFICATION from the virtual keyboard that currently does not exist (correct me if I am wrong), when the inserted name is "accepted".
Also there is the Control property "focus_next" which works on Windows with the tab key but not on Android.
**Describe the feature / enhancement and how it helps to overcome the problem or limitation:**
When OS.show_virtual_keyboard() is called on Andoird this opens up:

But in other applications there are different kinds of keyboards which I would like to use in my application and cannot:

**Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:**
In Sketchware there are these two properties that can be set on a LineEdit or TextEdit:


This could be a FLAG-property of the LineEdit or an optional FLAG for the OS.show_virtual_keyboard()-function:
OS.show_virtual_keyboard(type=OS.VIRTUAL_KEYBOARD_TYPE_TEXT,option=OS.VIRTUAL_KEYBOARD_OPTION_SEARCH)
**If this enhancement will not be used often, can it be worked around with a few lines of script?:**
I dont think so.
**Is there a reason why this should be core and not an add-on in the asset library?:**
In every other application in the app store this feature is used - from the calculator to any browser. Why is Godot not supporting this feature? (Correct me if I am wrong, but I did not found this setting where I expected it)