GNOME Bugzilla – Bug 621873
Custom script for eclipse may be refactored
Last modified: 2010-09-20 10:54:35 UTC
The logic used in the function _presentTextAtNewCaretPosition to determine whether the text should be spoken, can be optimized. This requires that the functions onFocus, onTextInserted and onTextDeleted save the current position of the object when the text is spoken in this task . This is already done so partially.
Created attachment 163907 [details] [review] Revision 1 Tested without problems
Created attachment 163975 [details] [review] revision 2 fix a situation where the line was read when user typing
Created attachment 164030 [details] [review] revision 3 I was using a logic to identify if caret was moved because user is typing. The logic was based in the difference between actual and previous position. it is no longer necessary because an object:text-changed:insert is generated before and the character typed is processed in that function. There is however an exception, when the object is a SINGLE_LINE. This version of the patch tries to address this situation. Needs to be reviewed. Thanks.
Review of attachment 164030 [details] [review]: This certainly makes your script a lot cleaner. Nice! I'd be happy to push this to master if you do not have any other changes or require further testing. Please let me know. Thanks!
No more changes. Thanks.
Comment on attachment 164030 [details] [review] revision 3 http://git.gnome.org/browse/orca/commit/?id=54014736140372bb52f60ab14315b0d838f10054
(In reply to comment #5) > No more changes. > Thanks. Awesome. Pushed to master. Thanks! Please feel free to close this bug out as FIXED if there's no additional work you need to do on it.