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