Discussion:
Setting a single selection between different objects in Firefox using IAccessible2
Chris Hardy
2015-05-11 03:41:00 UTC
Permalink
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
Alexander Surkov
2015-05-11 15:50:18 UTC
Permalink
I guess Firefox could combine continuously connected ranges into one bug
what's wrong in multiple selection?
Thanks.
Alexander.
Post by 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
https://lists.mozilla.org/listinfo/dev-accessibility
Chris Hardy
2015-05-11 17:29:38 UTC
Permalink
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
Post by Alexander Surkov
I guess Firefox could combine continuously connected ranges into one bug
what's wrong in multiple selection?
Thanks.
Alexander.
Post by 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
https://lists.mozilla.org/listinfo/dev-accessibility
Alexander Surkov
2015-05-11 17:46:48 UTC
Permalink
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?
Please file a bug on it
https://bugzilla.mozilla.org/enter_bug.cgi?product=Core
Post by Chris Hardy
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
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.
Post by Chris Hardy
Regards,
Chris
Post by Alexander Surkov
I guess Firefox could combine continuously connected ranges into one bug
what's wrong in multiple selection?
Thanks.
Alexander.
Post by Chris Hardy
I'm having difficulty with setting selections in FF using
IAccessibility2,
Post by Alexander Surkov
Post by Chris Hardy
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
Post by Alexander Surkov
Post by Chris Hardy
Cheers
_______________________________________________
dev-accessibility mailing list
https://lists.mozilla.org/listinfo/dev-accessibility
_______________________________________________
dev-accessibility mailing list
https://lists.mozilla.org/listinfo/dev-accessibility
Alexander Surkov
2015-05-11 19:02:52 UTC
Permalink
On Mon, May 11, 2015 at 11:46 AM, Alexander Surkov <
Post by Alexander Surkov
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?
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
Post by Alexander Surkov
Post by Chris Hardy
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
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?
Post by Alexander Surkov
Post by Chris Hardy
Regards,
Chris
Post by Alexander Surkov
I guess Firefox could combine continuously connected ranges into one
bug
Post by Alexander Surkov
what's wrong in multiple selection?
Thanks.
Alexander.
Post by Chris Hardy
I'm having difficulty with setting selections in FF using
IAccessibility2,
Post by Alexander Surkov
Post by Chris Hardy
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
Post by Alexander Surkov
Post by Chris Hardy
Cheers
_______________________________________________
dev-accessibility mailing list
https://lists.mozilla.org/listinfo/dev-accessibility
_______________________________________________
dev-accessibility mailing list
https://lists.mozilla.org/listinfo/dev-accessibility
Chris Hardy
2015-05-11 17:31:30 UTC
Permalink
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
Post by Alexander Surkov
I guess Firefox could combine continuously connected ranges into one bug
what's wrong in multiple selection?
Thanks.
Alexander.
Post by 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
https://lists.mozilla.org/listinfo/dev-accessibility
Loading...