You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by kamcknig <ka...@gmail.com> on 2016/10/04 18:56:12 UTC

Can't get selectionAnchorPosition to work

Maybe I'm misunderstanding what it's supposed to do, but if i select a block
of text with the mouse with the following code and then hit the backspace
key, the selectionActiveIndex is always equal to the selectionAnchorIndex. I
also tried the change event with the same results, and the textInput event
but that doesn't get fired with backspace





--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Can-t-get-selectionAnchorPosition-to-work-tp13731.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Can't get selectionAnchorPosition to work

Posted by kamcknig <ka...@gmail.com>.
How would I be able to get the selection before then? Is there an event
fired when a selection occurs?

Oh jeez. As I'm typing this I looked it up and there is a SelectionEvent.
Not sure how I missed that. Thank you much!


Kyle McKnight
Senior UI Engineer - Accesso
602.515.1444 (M)

On Tue, Oct 4, 2016 at 3:12 PM, Josh Tynjala [via Apache Flex Users] <
ml-node+s2333346n13732h46@n4.nabble.com> wrote:

> It should be different before your hit backspace, but after, no characters
> will be selected, so they'll be equal.
>
> - Josh
>
> On Oct 4, 2016 12:02 PM, "kamcknig" <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=13732&i=0>> wrote:
>
> > Maybe I'm misunderstanding what it's supposed to do, but if i select a
> > block
> > of text with the mouse with the following code and then hit the
> backspace
> > key, the selectionActiveIndex is always equal to the
> selectionAnchorIndex.
> > I
> > also tried the change event with the same results, and the textInput
> event
> > but that doesn't get fired with backspace
> >
> >
> >
> >
> >
> > --
> > View this message in context: http://apache-flex-users.
> > 2333346.n4.nabble.com/Can-t-get-selectionAnchorPosition-
> > to-work-tp13731.html
> > Sent from the Apache Flex Users mailing list archive at Nabble.com.
> >
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-flex-users.2333346.n4.nabble.com/Can-t-
> get-selectionAnchorPosition-to-work-tp13731p13732.html
> To unsubscribe from Can't get selectionAnchorPosition to work, click here
> <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=13731&code=a2FtY2tuaWdAZ21haWwuY29tfDEzNzMxfC0xNTg3MjQ1NTM4>
> .
> NAML
> <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Can-t-get-selectionAnchorPosition-to-work-tp13731p13733.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Can't get selectionAnchorPosition to work

Posted by Josh Tynjala <jo...@gmail.com>.
It should be different before your hit backspace, but after, no characters
will be selected, so they'll be equal.

- Josh

On Oct 4, 2016 12:02 PM, "kamcknig" <ka...@gmail.com> wrote:

> Maybe I'm misunderstanding what it's supposed to do, but if i select a
> block
> of text with the mouse with the following code and then hit the backspace
> key, the selectionActiveIndex is always equal to the selectionAnchorIndex.
> I
> also tried the change event with the same results, and the textInput event
> but that doesn't get fired with backspace
>
>
>
>
>
> --
> View this message in context: http://apache-flex-users.
> 2333346.n4.nabble.com/Can-t-get-selectionAnchorPosition-
> to-work-tp13731.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>