After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 616464 - Correct the issues with Java keyboardEvents
Correct the issues with Java keyboardEvents
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
2.30.x
Other All
: Normal normal
: 2.32.0
Assigned To: Joanmarie Diggs (IRC: joanie)
Orca Maintainers
Depends on: 616459
Blocks:
 
 
Reported: 2010-04-22 01:21 UTC by Joanmarie Diggs (IRC: joanie)
Modified: 2010-09-20 10:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (3.29 KB, patch)
2010-04-22 02:14 UTC, Joanmarie Diggs (IRC: joanie)
committed Details | Review

Description Joanmarie Diggs (IRC: joanie) 2010-04-22 01:21:09 UTC
1. Java doesn't use the same hw_code as gdk

2. Java Atk Wrapper translates punctuation marks from the printable symbol (which we want and need) into a keyname.

We should try to convert the Java hw_code into the gdk equivalent. And we should hack around the Java Atk Wrapper hack until we can get that hack removed because it was not needed in the first place. :-/

This bug depends on bug 616459 because we need its functionality in place first.
Comment 1 Joanmarie Diggs (IRC: joanie) 2010-04-22 02:14:28 UTC
Created attachment 159300 [details] [review]
proposed patch

This works for me. I have verified that:

* the hw_code field is consistent with what we see for the same keyboardEvent in Gedit

* that the event_string field is once again the expected printable character.

* punctuation characters are now echoed properly (whereas they weren't being echoed before)

* Commands continue to work (I even bound new keybindings which included punctuation)

The one other thing I want to verify is that these changes are also compatible with the pre-hacked Java Atk Wrapper, which means I need to find a system (or a boot environment) which has it. I think this is worth doing for a couple of reasons:

1. Backward compatibility for Orca users who run Orca from git master but an older version of GNOME.

2. My intent is to ask (again) that Ke remove the hack he had added on our behalf, presumably at someone's request. We need to be especially sure that he can do so safely.
Comment 2 Joanmarie Diggs (IRC: joanie) 2010-04-22 02:44:41 UTC
I have just verified that the patch I've attached to this bug is backwards compatible with the pre-punctuation hack version of Java Atk Wrapper, using build 132 of OpenSolaris.
Comment 3 Joanmarie Diggs (IRC: joanie) 2010-04-22 02:49:07 UTC
Alex, even though this is specific to the Java toolkit script, it builds upon/uses the KeyboardEvent changes. Therefore, if you wouldn't mind, I'd appreciate a review.

Thanks!
Comment 4 Joanmarie Diggs (IRC: joanie) 2010-04-22 21:56:35 UTC
Comment on attachment 159300 [details] [review]
proposed patch

I have since updated Orca's regression tests for Java (make them current and use assertions to automate pass/fail). Then I did a before/after comparison using the patch I've proposed here. My patch does not introduce any regressions, and it is limited to the Java toolkit script. Therefore, I've gone ahead and committed it so that we can move forward on tackling other Java+Orca bugs.