Bug 308057 - StyledText reporting wrong accessibility information when deleting data with backspace
Summary: StyledText reporting wrong accessibility information when deleting data with ...
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.6 M7   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords: accessibility
Depends on:
Blocks:
 
Reported: 2010-04-04 22:26 EDT by rui batista CLA
Modified: 2010-04-27 16:43 EDT (History)
3 users (show)

See Also:


Attachments
fix (1.19 KB, patch)
2010-04-07 14:51 EDT, Silenio Quarti CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description rui batista CLA 2010-04-04 22:26:24 EDT
Build Identifier: 3.5

I'm using the orca screen reader, the GNOME platform and eclipse 3.5. When deleting characters in java editor, orca reports the character at the cursor position after deleting instead of the deleted character. Investigating the issue with some debugging of orca I found that the editor is providing the wrong data on the atk event it generates for the atk object:text:changed:deleted event. The orca metabug with more information and debug files with described behaviour can be found here:

https://bugzilla.gnome.org/show_bug.cgi?id=572555

Orca screen reader:
http://live.gnome.org/Orca

I do know eclipse uses native controls (swt) and this bug might be somewhere related to GTK. But this only happens in java editor and not on the other text controls of eclipse (preferences, project wisard, etc.).
This does not happen at least on Windows platform.

To reproduce the described behaviour you can run Orca and see its debug or (I think is better for non screen reader users) use the accercizer accessibility explorer:

http://live.gnome.org/Accerciser

Just erase some characters in java editor and see the generated events, mainly the any_data for the text:changed:deleted event. It should be the deleted String but it's not.

Reproducible: Always

Steps to Reproduce:
1. Open a clas file in java editor
2. Delete some characters, for instance the three first characters of the word public ("pub") using backspace.
3. See the generated atk/at-spi events, using orca debugging facility or the accercizer tool.
Comment 1 Dani Megert CLA 2010-04-06 06:32:43 EDT
What happens if you do this with the Eclipse (default) Text Editor?
Comment 2 rui batista CLA 2010-04-06 07:03:55 EDT
(In reply to comment #1)
> What happens if you do this with the Eclipse (default) Text Editor?

Same thing...
Comment 3 Dani Megert CLA 2010-04-06 07:12:24 EDT
Looks like a problem in StyledText.
Comment 4 Silenio Quarti CLA 2010-04-07 14:51:39 EDT
Created attachment 164114 [details]
fix
Comment 5 Silenio Quarti CLA 2010-04-07 14:52:43 EDT
Fixed > 20100407 Bug 308057 -  StyledText reporting wrong accessibility information when deleting data with backspace