GNOME Bugzilla – Bug 171584
'AccessibleTextChangedEvent_getChangeString' does not return the expected values
Last modified: 2005-04-01 10:31:13 UTC
1. Run Swing Demo or SwingSet2 2. Go to a edit a single-line or a multi-line text object 3. Verify the values that this function returns for the insert and delete events. Expected behavior: The function should return the difference between the current text and the one before the insert/delete event. Actual behavior: The function returns the 'null' value. This makes gnopernicus to not report the insert/delete event for this type of single-line and multi-line text objects.
Created attachment 39241 [details] [review] this is a patch for gnopernicus This patch makes gnopernicus to report the changes for the text in case of 'insert' event using the event's details. In case of 'delete' event I couldn't extract the text that was deleted.
Comment on attachment 39241 [details] [review] this is a patch for gnopernicus I have doubts about how reliable this workaround will be.
copied from comments in bug 171581: ==== ------- Additional Comment #8 From bill.haneman@sun.com 2005-03-30 11:19 ------- Try the latest cvs version of java-access-bridge; it also reports text-change strings in the CORBA_Anys sent from the currently-focussed object. ------- Additional Comment #9 From Oana Serb 2005-03-31 08:58 ------- With the latest version of java-access-bridge, I saw the following in Swing Demo: - writing a text ('abcdef') in a text box, then deleting it (using 'backspace' or 'delete') char by char, the deleted text is sometimes null and sometimes has a wrong value. - sometimes, when deleting a char from the text box, the 'text-changed:delete' event is not reported (for example if I want to delete the 'f' from the 'abcdef' string, only the 'caret-moved' event is reported). This behavior is present for multipleline and also for singleline text boxes. ------- Additional Comment #10 From bill.haneman@sun.com 2005-03-31 09:01 ------- Oana, are you using the version that was distributed via email this afternoon? It should have solved the issues in comment #9 (I don't see them). Also please indicate which 'text box' you are using in which 'Swing Demo' - are you using SwingSet2? If so, which widgets are you testing? ------- Additional Comment #11 From Oana Serb 2005-03-31 09:12 ------- All the tests were made with the cvs version. I didn't received at that time the new version. I used Swing Demo. The text boxes from 'TextArea Two', 'Text Fields', 'More labels' and 'Label' tags were used for tests. ------- Additional Comment #12 From Oana Serb 2005-03-31 09:15 ------- I will make all the tests again with the new version. ------- Additional Comment #13 From Oana Serb 2005-04-01 04:19 ------- I made again all the tests with the new version. The deleted text and the events are reported correctly. The behavior shown in comment #9 is not present anymore. ====