HeapsIO / heaps

Heaps : Haxe Game Framework
http://heaps.io
MIT License
3.19k stars 337 forks source link

Added the possibility to specify and auto-call a software keyboard for all TextInput #1143

Closed yuxiaomao closed 1 year ago

yuxiaomao commented 1 year ago

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.

yuxiaomao commented 1 year ago

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