I understand it is strange, but I have checked in a simple example and
cursor doesn't appear in TextInput.

Let me put ComboBox on that example and see if it's working.

On Tue, Aug 20, 2019, 12:26 PM Carlos Rovira <carlosrov...@apache.org>
wrote:

> Hi Piotr,
> is strange since jewel ComboBoxController
> uses that code in line 123
>
> //put focus in the textinput
> if (event.target == viewBead.button) {
> viewBead.textinput.element.focus();
> }
>
> El lun., 19 ago. 2019 a las 23:17, Piotr Zarzycki (<
> piotrzarzyck...@gmail.com>) escribió:
>
> > Hi Carlos,
> >
> > Like I said it doesn't work. I cannot figure out why. Maybe something
> else
> > getting focus after I set mine.
> >
> > Any more ideas?
> >
> > Thanks,
> > Piotr
> >
> > On Mon, Aug 19, 2019, 8:48 PM Carlos Rovira <carlosrov...@apache.org>
> > wrote:
> >
> > > Hi Piotr,
> > >
> > > don't remember if I did a bead for that. If not, I think you could add
> > one
> > > to solve that.
> > >
> > > I think just this should work:
> > >
> > > textinput.element.focus();
> > >
> > >
> > >
> > >
> > > El lun., 19 ago. 2019 a las 17:56, Piotr Zarzycki (<
> > > piotrzarzyck...@gmail.com>) escribió:
> > >
> > > > Hello,
> > > >
> > > > I need focus first element in a Form, it is always TextInput. In
> > general
> > > > solution for that should be:
> > > >
> > > > myTextInput.element.focus();
> > > > myTextInput.element.select();
> > > >
> > > > Unfortunately none of that options works actually. I created simple
> > > > separated application where I have only TextInput and after
> > initComplete
> > > > I'm trying to put inside cursor, but it didn't work as well.
> > > >
> > > > Did anyone try focus Jewel TextInput ?
> > > >
> > > > Thanks,
> > > > --
> > > >
> > > > Piotr Zarzycki
> > > >
> > > > Patreon: *https://www.patreon.com/piotrzarzycki
> > > > <https://www.patreon.com/piotrzarzycki>*
> > > >
> > >
> > >
> > > --
> > > Carlos Rovira
> > > http://about.me/carlosrovira
> > >
> >
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>

Reply via email to