After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 473585 - Caret not being set to ARIA listbox when navigating to it
Caret not being set to ARIA listbox when navigating to it
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Scott Haeger
Orca Maintainers
Depends on:
Blocks: 423348
 
 
Reported: 2007-09-04 14:23 UTC by Scott Haeger
Modified: 2007-09-05 15:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
first version of Caret not being set to ARIA listbox when navigating to it (665 bytes, patch)
2007-09-04 15:06 UTC, Scott Haeger
none Details | Review

Description Scott Haeger 2007-09-04 14:23:21 UTC
Will observed the following when testing a previous listbox patch seen here http://bugzilla.gnome.org/show_bug.cgi?id=468968.

In http://www.mozilla.org/access/dhtml/listbox, I'm noticing the following:

1) Position the caret between the 'i' and 't' of "item" in the paragraph 
   above the list box.
2) Down arrow to the list.
3) Press the right arrow.  This takes you to the 'm' in item.  Strange.

The problem occurs because HTML numbered lists have a problem where the caret is set to the last item of the list.  In these cases the caret is simply not set.  The test encompasses all lists, but probably should only be for all non-ARIA lists because ARIA lists do not seem to have the same problem.
Comment 1 Scott Haeger 2007-09-04 15:06:01 UTC
Created attachment 94936 [details] [review]
first version of Caret not being set to ARIA listbox when navigating to it

The patch fixes this problem.  Now I need to fix the second item seen here http://bugzilla.gnome.org/show_bug.cgi?id=468968#c8
Comment 2 Scott Haeger 2007-09-04 16:03:02 UTC
It should be noted that this additional patch must be applied first before testing http://bugzilla.gnome.org/attachment.cgi?id=94652
Comment 3 Scott Haeger 2007-09-05 14:16:32 UTC
This is a very simple solution that should not affect non-ARIA widgets or impact performance dramatically.  No other patches are needed for testing now.
Comment 4 Willie Walker 2007-09-05 15:30:56 UTC
The patch looks good.  The only anal-retentive thing is a surface-level suggestion to try to follow the Javasoft coding conventions and place the binary and unary operators on the same line as the thing they apply to.  We try to do this, and I admit it is an odd style.

if self.isAriaWidget() \
    or not (obj.role == rolenames.ROLE_LIST_ITEM \
            and not obj.state.count(atspi.Accessibility.STATE_FOCUSABLE)):
Comment 5 Scott Haeger 2007-09-05 15:52:32 UTC
Coding style was changed as described in comment #4.  Committed to trunk.