IMO, Jewel can do whatever it wants since it isn’t trying to be as 
super-lightweight as Basic.

For Basic, I think Raúl’s suggestion of a bead makes sense.  The implementation 
of setting focus could get more complex in certain cases so we probably 
shouldn’t assume that the JS implementation can just call focus() on itself.

And then the various components that want to support a direct setFocus call can 
do so by the usual composition rules.  I’d be in favor of an interface as well.

Any volunteers to do it?

My 2 cents,
-Alex

From: Carlos Rovira <[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Wednesday, December 4, 2019 at 1:58 AM
To: "[email protected]" <[email protected]>
Subject: Re: SetFocus

Hi Raúl,

I think we don't have nothing in Jewel.
Maybe others can say more about what we have in Basic.
Maybe some bead already exits to make the same as "setFocus" was doing?



El mar., 3 dic. 2019 a las 20:33, Raúl Núñez 
(<[email protected]<mailto:[email protected]>>) escribió:
Hi:

I´m using Basic and Jewel,no MXRoyale.

If there is nothing about it in those Sets I can add a github issue.

Thanks!

El mar., 3 dic. 2019 a las 18:22, Alex Harui 
(<[email protected]<mailto:[email protected]>>) escribió:
Are you using focusManager or calling setFocus on TextInput.  We probably 
haven’t emulated those APIs yet, but volunteers are certainly welcome to offer 
patches that do.  Open an issue in the issue tracker.

-Alex

From: Raúl Núñez <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Tuesday, December 3, 2019 at 7:38 AM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: SetFocus

Hi:

How can I use setFocus in a TextInput? Is there any bead for it?

Thanks!!


--
Carlos Rovira
http://about.me/carlosrovira<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C0fe047b60ad3419f98f808d778a08dc5%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637110503278060188&sdata=LMKoe8%2F3a8DXUj9TdI30kTlN7AzxuUA6RNos9EBQpQQ%3D&reserved=0>

Reply via email to