Setting a single selection between different objects in Firefox using IAccessible2

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Setting a single selection between different objects in Firefox using IAccessible2

Chris Hardy
I'm having difficulty with setting selections in FF using IAccessibility2, would anyone here mind taking a look at my question posted over at SO?

http://stackoverflow.com/questions/30159146/setting-a-single-selection-between-different-objects-in-firefox-using-iaccessibl

Cheers
_______________________________________________
dev-accessibility mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-accessibility
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Setting a single selection between different objects in Firefox using IAccessible2

Alexander Surkov
I guess Firefox could combine continuously connected ranges into one bug
what's wrong in multiple selection?
Thanks.
Alexander.

On Sun, May 10, 2015 at 11:41 PM, Chris Hardy <[hidden email]> wrote:

> I'm having difficulty with setting selections in FF using IAccessibility2,
> would anyone here mind taking a look at my question posted over at SO?
>
>
> http://stackoverflow.com/questions/30159146/setting-a-single-selection-between-different-objects-in-firefox-using-iaccessibl
>
> Cheers
> _______________________________________________
> dev-accessibility mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/dev-accessibility
>
_______________________________________________
dev-accessibility mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-accessibility
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Setting a single selection between different objects in Firefox using IAccessible2

Chris Hardy
In reply to this post by Chris Hardy
Hi Alexander, thanks for your response.

With multiple selections, I get weird effects in the Gmail compose window. Gmail compose inhibits multiple selection by mouse, so my guess is that it just doesn't know how to handle it. I'm sure there are many other CE-based editors that will also have similar issues.

What would it take to update FF to combine continuously selected ranges like you suggest?

Another thought... what if FF allowed the use of IA2_TEXT_OFFSET_CARET in setSelection, even when the actual offset is outside of the current object? It is very likely that the caret should be at one end of the selection anyways. Then I could do something like this:

text2.setCaretOffset(2);
text1.setSelection(0, 2, IA2_TEXT_OFFSET_CARET);

Regards,
Chris


On Monday, May 11, 2015 at 9:50:37 AM UTC-6, Alexander Surkov wrote:

> I guess Firefox could combine continuously connected ranges into one bug
> what's wrong in multiple selection?
> Thanks.
> Alexander.
>
> On Sun, May 10, 2015 at 11:41 PM, Chris Hardy <[hidden email]> wrote:
>
> > I'm having difficulty with setting selections in FF using IAccessibility2,
> > would anyone here mind taking a look at my question posted over at SO?
> >
> >
> > http://stackoverflow.com/questions/30159146/setting-a-single-selection-between-different-objects-in-firefox-using-iaccessibl
> >
> > Cheers
> > _______________________________________________
> > dev-accessibility mailing list
> > [hidden email]
> > https://lists.mozilla.org/listinfo/dev-accessibility
> >
_______________________________________________
dev-accessibility mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-accessibility
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Setting a single selection between different objects in Firefox using IAccessible2

Chris Hardy
In reply to this post by Chris Hardy
Hi Alexander, thanks for your response.

With multiple selections, I get weird effects in the Gmail compose window. Gmail compose inhibits multiple selection by mouse, so my guess is that it just doesn't know how to handle it. I'm sure there are many other CE-based editors that will also have similar issues.

What would it take to update FF to combine continuously selected ranges like you suggest?

Another thought... what if FF allowed the use of IA2_TEXT_OFFSET_CARET in setSelection, even when the actual offset is outside of the current object? It is very likely that the caret should be at one end of the selection anyways. Then I could do something like this:

text2.setCaretOffset(2);
text1.setSelection(0, 2, IA2_TEXT_OFFSET_CARET);

Regards,
Chris

On Monday, May 11, 2015 at 9:50:37 AM UTC-6, Alexander Surkov wrote:

> I guess Firefox could combine continuously connected ranges into one bug
> what's wrong in multiple selection?
> Thanks.
> Alexander.
>
> On Sun, May 10, 2015 at 11:41 PM, Chris Hardy <[hidden email]> wrote:
>
> > I'm having difficulty with setting selections in FF using IAccessibility2,
> > would anyone here mind taking a look at my question posted over at SO?
> >
> >
> > http://stackoverflow.com/questions/30159146/setting-a-single-selection-between-different-objects-in-firefox-using-iaccessibl
> >
> > Cheers
> > _______________________________________________
> > dev-accessibility mailing list
> > [hidden email]
> > https://lists.mozilla.org/listinfo/dev-accessibility
> >
_______________________________________________
dev-accessibility mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-accessibility
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Setting a single selection between different objects in Firefox using IAccessible2

Alexander Surkov
In reply to this post by Chris Hardy
On Mon, May 11, 2015 at 1:29 PM, Chris Hardy <[hidden email]> wrote:

> Hi Alexander, thanks for your response.
>
> With multiple selections, I get weird effects in the Gmail compose window.
> Gmail compose inhibits multiple selection by mouse, so my guess is that it
> just doesn't know how to handle it. I'm sure there are many other CE-based
> editors that will also have similar issues.
>
> What would it take to update FF to combine continuously selected ranges
> like you suggest?
>

Please file a bug on it
https://bugzilla.mozilla.org/enter_bug.cgi?product=Core


>
> Another thought... what if FF allowed the use of IA2_TEXT_OFFSET_CARET in
> setSelection, even when the actual offset is outside of the current object?
> It is very likely that the caret should be at one end of the selection
> anyways. Then I could do something like this:
>
> text2.setCaretOffset(2);
> text1.setSelection(0, 2, IA2_TEXT_OFFSET_CARET);
>

That sounds reasonable but I'm surprised it doesn't work. It makes to file
a bug on this too.


>
> Regards,
> Chris
>
>
> On Monday, May 11, 2015 at 9:50:37 AM UTC-6, Alexander Surkov wrote:
> > I guess Firefox could combine continuously connected ranges into one bug
> > what's wrong in multiple selection?
> > Thanks.
> > Alexander.
> >
> > On Sun, May 10, 2015 at 11:41 PM, Chris Hardy <[hidden email]>
> wrote:
> >
> > > I'm having difficulty with setting selections in FF using
> IAccessibility2,
> > > would anyone here mind taking a look at my question posted over at SO?
> > >
> > >
> > >
> http://stackoverflow.com/questions/30159146/setting-a-single-selection-between-different-objects-in-firefox-using-iaccessibl
> > >
> > > Cheers
> > > _______________________________________________
> > > dev-accessibility mailing list
> > > [hidden email]
> > > https://lists.mozilla.org/listinfo/dev-accessibility
> > >
> _______________________________________________
> dev-accessibility mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/dev-accessibility
>
_______________________________________________
dev-accessibility mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-accessibility
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Setting a single selection between different objects in Firefox using IAccessible2

Alexander Surkov
On Mon, May 11, 2015 at 2:24 PM, Chris Hardy <[hidden email]> wrote:

> Bugs created:
>
> On Mon, May 11, 2015 at 11:46 AM, Alexander Surkov <
> [hidden email]> wrote:
>
>>
>>
>> On Mon, May 11, 2015 at 1:29 PM, Chris Hardy <[hidden email]>
>> wrote:
>>
>>> Hi Alexander, thanks for your response.
>>>
>>> With multiple selections, I get weird effects in the Gmail compose
>>> window. Gmail compose inhibits multiple selection by mouse, so my guess is
>>> that it just doesn't know how to handle it. I'm sure there are many other
>>> CE-based editors that will also have similar issues.
>>>
>>> What would it take to update FF to combine continuously selected ranges
>>> like you suggest?
>>>
>>
>> Please file a bug on it
>> https://bugzilla.mozilla.org/enter_bug.cgi?product=Core
>>
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=1163706
>
>


thanks



>
>>
>>
>>>
>>> Another thought... what if FF allowed the use of IA2_TEXT_OFFSET_CARET
>>> in setSelection, even when the actual offset is outside of the current
>>> object? It is very likely that the caret should be at one end of the
>>> selection anyways. Then I could do something like this:
>>>
>>> text2.setCaretOffset(2);
>>> text1.setSelection(0, 2, IA2_TEXT_OFFSET_CARET);
>>>
>>
>> That sounds reasonable but I'm surprised it doesn't work. It makes to
>> file a bug on this too.
>>
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=1163713
>


I think I misread the original proposal. Technically Firefox behavior may
be considered correct because the caret offset is relative the DIV
accessible object what means the link is selected entirely. I don't see
however anything bad if magic caret offset did what you describe. What do
others think on this?


>
>
>>
>>
>>>
>>> Regards,
>>> Chris
>>>
>>>
>>>
>>> On Monday, May 11, 2015 at 9:50:37 AM UTC-6, Alexander Surkov wrote:
>>> > I guess Firefox could combine continuously connected ranges into one
>>> bug
>>> > what's wrong in multiple selection?
>>> > Thanks.
>>> > Alexander.
>>> >
>>> > On Sun, May 10, 2015 at 11:41 PM, Chris Hardy <[hidden email]>
>>> wrote:
>>> >
>>> > > I'm having difficulty with setting selections in FF using
>>> IAccessibility2,
>>> > > would anyone here mind taking a look at my question posted over at
>>> SO?
>>> > >
>>> > >
>>> > >
>>> http://stackoverflow.com/questions/30159146/setting-a-single-selection-between-different-objects-in-firefox-using-iaccessibl
>>> > >
>>> > > Cheers
>>> > > _______________________________________________
>>> > > dev-accessibility mailing list
>>> > > [hidden email]
>>> > > https://lists.mozilla.org/listinfo/dev-accessibility
>>> > >
>>> _______________________________________________
>>> dev-accessibility mailing list
>>> [hidden email]
>>> https://lists.mozilla.org/listinfo/dev-accessibility
>>>
>>
>>
>
_______________________________________________
dev-accessibility mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-accessibility
Loading...