GNOME Bugzilla – Bug 127400
SPI_STATE_FOCUSED is missing for some objects
Last modified: 2009-08-15 18:40:50 UTC
In case of focus: event, the state for the object doesn't contain SPI_STATE_FOCUSED. From my checks I saw that for menu, menu-item, radio-menu-item, check-menu-item, page-tab (all with gedit) and for text (with yelp).
Is this a bug? For the menus and menu items and page tab the state SELECTED should be set.
OK, so we could test for SELECTED || FOCUSSED... but it does seem to me that if an object emits "focus:" it would be reasonable for its state to include FOCUSSED.
In the case of Java, selection change events are fired, not focus. I believe the bridge re-casts them.
I still believe that objects which emit 'focus:' ought to be FOCUSSED. In the meantime gnopernicus can check for FOCUSSED || SELECTED, to work around the user-visible problem.
I don't disagree with the statement "objects that emit focus shouldn't be focused". Rather, I'm pointing out that from the get go Java never fired focus events for this; the gnome-java-bridge did the mapping. This suggests that the gnome-java-bridge should map the AccessibleStateSet "selected" in menus to "focused".
yes, for Java apps this will need to be handled in the java bridge. But for gtk+ apps this will have to be mapped for the various gail widgets as well which emit 'focus' but don't actually technically have gtk+ focus, for instance table cells and menu items.
Created attachment 21823 [details] [review] Proposed patch
The proposed patch ensure that the focus object has state FOCUSED. This should fix the problem for ATK. A similar fix will need to be made in the Java Access Bridge.
Patch committed to CVS HEAD.
In Character Map application the state for the combobox 'Font Family' doesn't contain SPI_STATE_FOCUSED.
What is the Character Map application? How do I start it?
Applications --> Accessories --> Character Map or launch 'charmap'
The text entry object which is a child of the combo-box has state FOCUSED. Do we need to set state FOCUSED on the combo-box object as well?
I have looked again and when the combo-box is reported as the focus object it does have state FOCUSED set.
Any further information on this. It looks correct to me.
I am closing this bug as I have received no reponse. Please reopen if you can confirm that the problem still occurs.
*** Bug 122713 has been marked as a duplicate of this bug. ***
This bug(stemming from 122713) is still occuring on my machine with gnome from CVS HEAD 22 Mar.