The idea is to add support software keyboard on some platforms (e.g. console or mobile) for all TextInput created, with a single var h2d.TextInput.showSoftwareKeyboard to be assigned at the start of a program.
It can then be disable in individual TextInput, if needed, by setting useSoftwareKeyboard to false.
When h2d.TextInput.showSoftwareKeyboard is set, it will be called when TextInput is focused. After the input or canceled, the TextInput will be automatically blur to allow focus it again.
Not sure if onCursorMove should be included in the function onTextChange, that can make sens, as if we add or remove text, cursor will often move as well
The idea is to add support software keyboard on some platforms (e.g. console or mobile) for all TextInput created, with a single var
h2d.TextInput.showSoftwareKeyboard
to be assigned at the start of a program. It can then be disable in individual TextInput, if needed, by settinguseSoftwareKeyboard
to false. Whenh2d.TextInput.showSoftwareKeyboard
is set, it will be called when TextInput is focused. After the input or canceled, the TextInput will be automatically blur to allow focus it again.