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 468765 - [verified] Orca does not provide access to shortcuts for FF3 or Thunderbird menu items
[verified] Orca does not provide access to shortcuts for FF3 or Thunderbird m...
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
2.19.x
Other All
: Normal normal
: 2.20.0
Assigned To: Joanmarie Diggs (IRC: joanie)
Orca Maintainers
Depends on:
Blocks: 404403 404409
 
 
Reported: 2007-08-21 08:00 UTC by Joanmarie Diggs (IRC: joanie)
Modified: 2008-07-22 19:28 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
proposed patch (567 bytes, patch)
2007-08-26 03:41 UTC, Joanmarie Diggs (IRC: joanie)
accepted-commit_now Details | Review
flag "space" for translation (990 bytes, patch)
2007-08-26 16:54 UTC, Joanmarie Diggs (IRC: joanie)
committed Details | Review

Description Joanmarie Diggs (IRC: joanie) 2007-08-21 08:00:27 UTC
Steps to reproduce:

1. Launch Firefox or Thunderbird
2. Navigate to a menu that has an associated shortcut (e.g. New Window in the File menu)
3. Use whereAmI

Expected results: In steps 2 and 3, Orca would speak and display the associated shortcut  (e.g. Control N) along with the name of the menu item.

Actual results:  Orca just speaks and displays only the menu item's name.
Comment 1 Joanmarie Diggs (IRC: joanie) 2007-08-21 08:01:11 UTC
I'm seeing the shortcuts exposed in Accerciser.  I just need to figure out why we're not handling it correctly.  It's 4 AM.  I'll get on this tomorrow (I mean today, but later :-) ).
Comment 2 Joanmarie Diggs (IRC: joanie) 2007-08-26 03:41:14 UTC
Created attachment 94346 [details] [review]
proposed patch

getAcceleratorAndShortcut() assumes menu items have three bindings.  Failing that, we are setting fullShortcut to bindingStrings[0] and accelerator to an empty string.  In Firefox and Thunderbird, we seem to have two bindings.  The first one is empty (yeah, I know) and the second one contains the accelerator.  Rather than OYAM (override yet another method) in Gecko.py, I thought we could do the attached.  Will, what do you think?
Comment 3 Willie Walker 2007-08-26 11:25:06 UTC
(In reply to comment #2)
> Created an attachment (id=94346) [edit]
> proposed patch
> 
> getAcceleratorAndShortcut() assumes menu items have three bindings.  Failing
> that, we are setting fullShortcut to bindingStrings[0] and accelerator to an
> empty string.  In Firefox and Thunderbird, we seem to have two bindings.  The
> first one is empty (yeah, I know) and the second one contains the accelerator. 
> Rather than OYAM (override yet another method) in Gecko.py, I thought we could
> do the attached.  Will, what do you think?
> 

Looks good to me.  While you're at this, can you also flag the "space" thing a couple lines down for translation?  We already have a "space" defined in chnames.py, so I think we're good with not introducing a string change:

So, go from:

        # If the accelerator string includes a Space, make sure we speak it.
        #
        if accelerator.endswith(" "):
            accelerator += "space"

to:

        # If the accelerator string includes a Space, make sure we speak it.
        #
        if accelerator.endswith(" "):
            # Translators: this is the spoken word for the space character
            #
            accelerator += _("space")
Comment 4 Joanmarie Diggs (IRC: joanie) 2007-08-26 16:54:38 UTC
Created attachment 94380 [details] [review]
flag "space" for translation

Thanks Will.  Flagged and committed this version to both trunk and the 2-20 branch.  Changing the status to pending.
Comment 5 Joanmarie Diggs (IRC: joanie) 2007-08-26 17:15:35 UTC
Just caught a typo in "accelerator" and checked in corrections to both trunk and the 2-20 branch.  Sorry!!
Comment 6 Mike Pedersen 2007-08-26 18:02:49 UTC
Works great! thanks 
Comment 7 Joanmarie Diggs (IRC: joanie) 2007-08-26 18:26:49 UTC
Thanks Mike!  Closing as FIXED.