java-access-bridge r234 - in trunk: . bridge/org/GNOME/Accessibility
- From: jeffcai svn gnome org
- To: svn-commits-list gnome org
- Subject: java-access-bridge r234 - in trunk: . bridge/org/GNOME/Accessibility
- Date: Mon, 22 Dec 2008 06:49:14 +0000 (UTC)
Author: jeffcai
Date: Mon Dec 22 06:49:14 2008
New Revision: 234
URL: http://svn.gnome.org/viewvc/java-access-bridge?rev=234&view=rev
Log:
2008-12-22 Omair Majid <omajid redhat com>
* bridge/org/GNOME/Accessibility/JavaBridge.java:
Fix for bug #563344
The event fired by the text component is different from what
we expect, newValueObject is not the position of the insertion,
but the position of the caret after the insertion, so fix
newValueObject.
Modified:
trunk/ChangeLog
trunk/bridge/org/GNOME/Accessibility/JavaBridge.java
Modified: trunk/bridge/org/GNOME/Accessibility/JavaBridge.java
==============================================================================
--- trunk/bridge/org/GNOME/Accessibility/JavaBridge.java (original)
+++ trunk/bridge/org/GNOME/Accessibility/JavaBridge.java Mon Dec 22 06:49:14 2008
@@ -750,11 +750,16 @@
oldFocusText = aeText.getTextRange (0, charCount);
}
else if ((ac != null) && (ac == oldFocusSource)) {
+ // accessibleAWTTextComponent
+ // the event fired by the text component is different from what we expect
+ // newValueObject is not the position of the insertion,
+ // but the position of the caret after the instertion, so fix newValueObject
+ newValueObject = new Integer(((Integer)newValueObject).intValue() - oldValue);
+ oldFocusText = getTextRange (aText, 0, charCount);
any.insert_string (oldFocusText.substring (
((Integer)newValueObject).intValue(),
((Integer)newValueObject).intValue() +
oldValue));
- oldFocusText = getTextRange (aText, 0, charCount);
}
}
else if ( charCount < prevCharCount ) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]