You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Piotr Zarzycki <pi...@gmail.com> on 2019/08/19 15:56:19 UTC
Focus Jewel TextInput
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>*
Focus Jewel TextInput
Posted by Piotr Zarzycki <pi...@gmail.com>.
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 <ca...@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 (<
> piotrzarzycki21@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 <ca...@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 (<
> > > piotrzarzycki21@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
>
Re: Focus Jewel TextInput
Posted by Carlos Rovira <ca...@apache.org>.
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 (<
piotrzarzycki21@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 <ca...@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 (<
> > piotrzarzycki21@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
Focus Jewel TextInput
Posted by Piotr Zarzycki <pi...@gmail.com>.
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 <ca...@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 (<
> piotrzarzycki21@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
>
Re: Focus Jewel TextInput
Posted by Carlos Rovira <ca...@apache.org>.
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 (<
piotrzarzycki21@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