You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Hugo Ferreira <hf...@gmail.com> on 2020/10/20 23:21:19 UTC
FocusEvent and Jewel TextInput
Hi,
How to use focus events with Jewel TextInput (if possible at the moment) ?
Re: FocusEvent and Jewel TextInput
Posted by Hugo Ferreira <hf...@gmail.com>.
Hi,
Thank you all very much.
Today later I will test it.
Carlos Rovira <ca...@apache.org> escreveu no dia quarta, 21/10/2020
à(s) 08:48:
> Hi,
>
> just to give a bit more of background and complement. Until now we were
> using the DispatchInputFinishedBead basic bead. It worked well, but I think
> the new one from Greg is a much better approach since it is more near to
> what we had on Flex and provides both the focus in and out.
>
>
> El mié., 21 oct. 2020 a las 1:40, Hugo Ferreira (<hf...@gmail.com>)
> escribió:
>
> > Thanks Greg.
> > A bead makes a lot of sense here.
> > Focus it's very important when it's needed however not all TextInputs
> needs
> > it.
> >
> > Greg Dove <gr...@gmail.com> escreveu no dia quarta, 21/10/2020 à(s)
> > 00:36:
> >
> > > I just pushed it now. It's in Basic and should be available in future
> > > builds, just add it as a bead to the TextInput
> > > example:
> > > <js:FocusEvents focusIn="textInput_focusInHandler(event)"
> > >
> focusOut="textInput_focusOutHandler(event)"/>
> > >
> > >
> > > On Wed, Oct 21, 2020 at 12:27 PM Greg Dove <gr...@gmail.com>
> wrote:
> > >
> > > >
> > > > I have a local approach for this that I was testing. I will try to
> push
> > > it
> > > > by the end of my day.
> > > >
> > > >
> > > > On Wed, Oct 21, 2020 at 12:21 PM Hugo Ferreira <
> hferreira.80@gmail.com
> > >
> > > > wrote:
> > > >
> > > >> Hi,
> > > >>
> > > >> How to use focus events with Jewel TextInput (if possible at the
> > > moment) ?
> > > >>
> > > >
> > >
> >
>
>
> --
> Carlos Rovira
> Apache Member & Apache Royale PMC
> *Apache Software Foundation*
> http://about.me/carlosrovira
>
Re: FocusEvent and Jewel TextInput
Posted by Carlos Rovira <ca...@apache.org>.
Hi,
just to give a bit more of background and complement. Until now we were
using the DispatchInputFinishedBead basic bead. It worked well, but I think
the new one from Greg is a much better approach since it is more near to
what we had on Flex and provides both the focus in and out.
El mié., 21 oct. 2020 a las 1:40, Hugo Ferreira (<hf...@gmail.com>)
escribió:
> Thanks Greg.
> A bead makes a lot of sense here.
> Focus it's very important when it's needed however not all TextInputs needs
> it.
>
> Greg Dove <gr...@gmail.com> escreveu no dia quarta, 21/10/2020 à(s)
> 00:36:
>
> > I just pushed it now. It's in Basic and should be available in future
> > builds, just add it as a bead to the TextInput
> > example:
> > <js:FocusEvents focusIn="textInput_focusInHandler(event)"
> > focusOut="textInput_focusOutHandler(event)"/>
> >
> >
> > On Wed, Oct 21, 2020 at 12:27 PM Greg Dove <gr...@gmail.com> wrote:
> >
> > >
> > > I have a local approach for this that I was testing. I will try to push
> > it
> > > by the end of my day.
> > >
> > >
> > > On Wed, Oct 21, 2020 at 12:21 PM Hugo Ferreira <hferreira.80@gmail.com
> >
> > > wrote:
> > >
> > >> Hi,
> > >>
> > >> How to use focus events with Jewel TextInput (if possible at the
> > moment) ?
> > >>
> > >
> >
>
--
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira
Re: FocusEvent and Jewel TextInput
Posted by Hugo Ferreira <hf...@gmail.com>.
Thanks Greg.
A bead makes a lot of sense here.
Focus it's very important when it's needed however not all TextInputs needs
it.
Greg Dove <gr...@gmail.com> escreveu no dia quarta, 21/10/2020 à(s)
00:36:
> I just pushed it now. It's in Basic and should be available in future
> builds, just add it as a bead to the TextInput
> example:
> <js:FocusEvents focusIn="textInput_focusInHandler(event)"
> focusOut="textInput_focusOutHandler(event)"/>
>
>
> On Wed, Oct 21, 2020 at 12:27 PM Greg Dove <gr...@gmail.com> wrote:
>
> >
> > I have a local approach for this that I was testing. I will try to push
> it
> > by the end of my day.
> >
> >
> > On Wed, Oct 21, 2020 at 12:21 PM Hugo Ferreira <hf...@gmail.com>
> > wrote:
> >
> >> Hi,
> >>
> >> How to use focus events with Jewel TextInput (if possible at the
> moment) ?
> >>
> >
>
Re: FocusEvent and Jewel TextInput
Posted by Greg Dove <gr...@gmail.com>.
I just pushed it now. It's in Basic and should be available in future
builds, just add it as a bead to the TextInput
example:
<js:FocusEvents focusIn="textInput_focusInHandler(event)"
focusOut="textInput_focusOutHandler(event)"/>
On Wed, Oct 21, 2020 at 12:27 PM Greg Dove <gr...@gmail.com> wrote:
>
> I have a local approach for this that I was testing. I will try to push it
> by the end of my day.
>
>
> On Wed, Oct 21, 2020 at 12:21 PM Hugo Ferreira <hf...@gmail.com>
> wrote:
>
>> Hi,
>>
>> How to use focus events with Jewel TextInput (if possible at the moment) ?
>>
>
Re: FocusEvent and Jewel TextInput
Posted by Hugo Ferreira <hf...@gmail.com>.
Thanks,
After I sent the e-mail, I was playing around on my local with this:
COMPILE::JS
protected override function createElement():WrappedHTMLElement
{
var element:WrappedHTMLElement = super.createElement();
super.input.addEventListener("onfocusout", onFocusOut);
return element;
}
private function onFocusOut(event:FocusEvent):void
{
dispatchEvent(new Event(FocusEvent.FOCUS_OUT));
}
But I'm missing something.
Greg Dove <gr...@gmail.com> escreveu no dia quarta, 21/10/2020 à(s)
00:27:
> I have a local approach for this that I was testing. I will try to push it
> by the end of my day.
>
>
> On Wed, Oct 21, 2020 at 12:21 PM Hugo Ferreira <hf...@gmail.com>
> wrote:
>
> > Hi,
> >
> > How to use focus events with Jewel TextInput (if possible at the moment)
> ?
> >
>
Re: FocusEvent and Jewel TextInput
Posted by Greg Dove <gr...@gmail.com>.
I have a local approach for this that I was testing. I will try to push it
by the end of my day.
On Wed, Oct 21, 2020 at 12:21 PM Hugo Ferreira <hf...@gmail.com>
wrote:
> Hi,
>
> How to use focus events with Jewel TextInput (if possible at the moment) ?
>