haxeui / haxeui-heaps

MIT License
31 stars 12 forks source link

let user type in TextField; fixed TextInputImpl #28

Closed radiatoryang closed 3 years ago

radiatoryang commented 3 years ago

problem: TextField not editable... because there's not actually any underlying h2d.TextInput there?

fix: modify TextInputImpl.hx to create a h2d.TextInput and hook up some focus / blur / onChange events, based on the tip from hoseyjoe in #20

fixes #25 and #20

I based some of my code patterns on https://github.com/haxeui/haxeui-openfl/blob/master/haxe/ui/backend/TextInputImpl.hx

known issues:

ianharrigan commented 3 years ago

Great... thanks! This is a nice start.

I wonder if its possible to "misused" heaps's TextInput to simulate a text area... I dont think text input word wraps though...

Anyways, thanks again! Ian