i'm using TextInputDialog restricted to numbers
http://wiki.gideros.rocks/index.php/TextInputDialog.NUMBERbut now i want the user to be able also to input negative numbers. is there a way?
or at least if i set the input type to TEXT then to restrict what is allowed to only numbers and "-"? (see
https://www.b4x.com/android/forum/threads/entering-negative-numbers.11407/ )
Comments
Fragmenter - animated loop machine and IKONOMIKON - the memory game
If you make use of embedded keyboards I don't think you can change their layout, since they are native android/ios (and on laptop you always have the option to add unexpected chars, so you would always need to sanitize).
On imgui you can sanitize on the run if I am not mistaken (if I recall there is an inputtext callback on text update), but you are still bound to the native keyboards layouts and chars. Another option might be to draw your own keyboard as nicke did years ago in his layout system.
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game