Issue 93269 - [a11y] caret-moved and focused events initially missing
Summary: [a11y] caret-moved and focused events initially missing
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: DEV300m30
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: eric.savary
QA Contact: issues@sw
URL:
Keywords: accessibility, regression
Depends on:
Blocks:
 
Reported: 2008-08-30 00:47 UTC by joaniediggs
Modified: 2013-08-07 14:44 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
test case (9.67 KB, application/vnd.oasis.opendocument.text)
2008-08-30 01:04 UTC, joaniediggs
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description joaniediggs 2008-08-30 00:47:47 UTC
Steps to reproduce:

1. Launch OOo Dev 300 m29 or m30

2. Start Writer by choosing Text Document

3. Open the (to be) attached test case, and:

4. Don't click on anything! :-) (Sometimes it makes the bug go away).

5. Press Down Arrow (and only Down Arrow) to begin moving through the text and
table (don't leave the table as you arrow)

Expected results: object:text-caret-moved and object:state-changed:focused
events would be emitted both for paragraphs giving up focus AND for paragraphs
gaining focus.

Actual results: the expected events are emitted just for the paragraphs giving
up focus.

(Here's where things get more interesting)

6. Within the table, press Up Arrow a few times. Then press Down Arrow. Notice
that the expected events are present for Up Arrow and suddenly present when you
Down Arrow.

7. Right Arrow to move to the next column. Repeat steps 5 and 6. Initially the
events are missing when you press Down Arrow for the new column. But up arrow
within that column and then the correct events are subsequently emitted for that
column when you press Down Arrow.

This is a regression. It wasn't present in 2.4, nor am I seeing it in m26. I
don't have m27 or m28, but it's definitely present in m29 and m30.

Thanks!
Comment 1 joaniediggs 2008-08-30 01:04:15 UTC
Created attachment 56099 [details]
test case
Comment 2 malte_timmermann 2008-11-26 14:10:29 UTC
OOo 3.2
Comment 3 eric.savary 2009-03-26 15:59:01 UTC
@OD: as described. The first "down arrowings" don't send all events. After "up"
it works. Tested in OOO310m3
Comment 4 Oliver-Rainer Wittmann 2009-04-07 15:58:43 UTC
defect cause found:
OOo's ATK bridge does not initially listens to all objects. When an object gets
the focus and submits a corresponding focus-changed event. A job is queued to
listen to this object in the future. Unfortunately, this job is performed after
the caret-moved event is submitted. Thus, the caret-moved event is lost for a
certain AT tool.
Comment 5 Oliver-Rainer Wittmann 2009-04-30 15:15:40 UTC
fixed in cws swa11y32 - changed file:
/vcl/unx/gtk/a11y/atkutil.cxx, rev. 271421

solution:
after the job for the focus event has been performed and the focus event is
emitted it is also emitted an object:text-caret-moved event, if the cursor is
inside the text object, for which the focus event is emitted.
Comment 6 Oliver-Rainer Wittmann 2009-05-26 11:59:32 UTC
correction of fix needed - changed file:
/vcl/unx/gtk/a11y/atkutil.cxx, rev. 272283
Comment 7 Oliver-Rainer Wittmann 2009-07-28 14:02:09 UTC
OD->ES: Checked in internal installation set of cws swa11y32_2nd - please verify
Comment 8 williewalker 2009-08-04 16:09:33 UTC
Using the swa11y32_2nd_en-US_SolarisIntel.tar file Thomas Lange made for me
(300m51(Build:9408)[CWS:swa11y32_2nd]), the Orca team has noticed the expected
caret-moved events are present; the object:state-changed:focused events (detail1
== 1) are still initially missing. As described in the opening comment, if you
up arrow in the table and then down arrow, the events suddenly start appearing.
This continues to be true for the focused events.

So...I think this bug needs to be reopened. :-(
Comment 9 eric.savary 2009-08-12 15:32:32 UTC
CCed: od
Comment 10 Oliver-Rainer Wittmann 2009-08-12 15:53:02 UTC
OD->williewalker:
You are right. Somehow I have overlooked that object:state-changed:focused are
also needed to be submitted.
--> reopening this issue.
Comment 11 Oliver-Rainer Wittmann 2009-08-12 16:22:41 UTC
Fix is in progress in cws swa11y32_2nd
Comment 12 Oliver-Rainer Wittmann 2009-08-13 07:13:47 UTC
taking over
Comment 13 Oliver-Rainer Wittmann 2009-08-13 09:19:52 UTC
fix for emitting missing object:state-changed:focused event in cws swa11y32_2nd
- changed file:
/vcl/unx/gtk/a11y/atkutil.cxx, rev. 274924
Comment 14 Oliver-Rainer Wittmann 2009-08-13 14:35:32 UTC
OD->ES: Checked the adjusted fix in cws swa11y32_2nd - please verify.
Comment 15 eric.savary 2009-08-19 14:12:26 UTC
Verified in CWS swa11y32_2nd
Comment 16 malte_timmermann 2010-01-08 09:12:49 UTC
Fixed and integrated => closing now..