Re: [g-a-devel] [PATCH] java-access-bridge: dont throw exceptions when entering text in AWT TextField



Omair,

In order to trace the bug better, could you file a bug in bugzilla.gnome.org and paste your patch there? To file a bug, you should have a bugzilla account. If you don't have yet, please create a one. Then you can file a bug at at-spi (product), javabridge (component).

Jeff

Omair Majid wrote:
Hi,

When using an AWT TextField to type text in, the property change emitted by the TextField is different from that of a JTextField. In the case of TextField, the newValueObject seen by JavaBridge.dispatchTextProperty is an Integer containing the new position of the caret, not the position at which text was inserted. This patch fixes newValueObject to contain the index of insertion. It also sets oldFocusText before using it. This fixes the StringIndexOutOfBoundException and emits the proper index for the object:text-changed:insert event.

Cheers,

Omair
------------------------------------------------------------------------

_______________________________________________
Gnome-accessibility-devel mailing list
Gnome-accessibility-devel gnome org
http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]