GNOME Bugzilla – Bug 503527
Mnemonics are not supported well
Last modified: 2008-07-22 19:32:50 UTC
In tracking down some other Java platform problems, I noticed that mnemonics were not handled at all. Instead, we look at only the full path and accelerator fields of a key binding for an event. In Java, the only information we get for menus and menu items seems to be the mnemonic. As such, this information is not available to the user in Orca's current form.
Created attachment 100925 [details] [review] Patch to take mnemonics into account This patch takes mnemonics into account. Most of the changes that an end user will see live in where_am_I.py, and it also fixes a bug in where_am_I.py that assumes the last character of the accelerator is the mnemonic: from the "Open Tab" menu item in "File" menu of GNOME terminal, we see that the two can be different (Shift+Ctrl+T for the accelerator and 'b' for the mnemonic). This patch also includes updated tests and all files have been pylint'ed to a 10.00.
While I tested this patch by hand with Firefox, OOo, GTK+, and Java apps, and I also ran the gtk-demo regression tests (and updated them accordingly), I think it could still use some more testing. Mike, please test.
This one now seems to be working well.
Committed. Thanks!