Closed Bug 1582734 Opened 5 years ago Closed 5 years ago

debugger: CmdOrCtrl shown in menu shortcuts instead of Ctrl

Categories

(DevTools :: Debugger, defect, P2)

69 Branch
defect

Tracking

(firefox69 wontfix, firefox70 wontfix, firefox71 fixed)

RESOLVED FIXED
Firefox 71
Tracking Status
firefox69 --- wontfix
firefox70 --- wontfix
firefox71 --- fixed

People

(Reporter: david.balazic, Assigned: davidwalsh)

Details

Attachments

(2 files)

Attached image Screenshot

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0

Steps to reproduce:

F12 / Debugger, open a JS file, right click a line (see screenshot)

Actual results:

The shortcut in the menu say CmdOrCtrl+B

Expected results:

The shortcut in the menu should say Ctrl+B on systems that have Ctrl keys and have no Cmd keys (and vice versa)

Like the hamburger menu does.

PS: Checked on nightly 71.0a1 (2019-09-19) (64-bit) - same as reported.

PPS: My Firefox is version 69.0.1 , even if the user agent string in the report says 69.0

Hi David,

Thanks for reporting this bug to us.

I was able to reproduce it on Firefox Release 69.0.1 (64-bit), Firefox Beta 70.0b9 (64-bit) and Nightly 71.0a1 (2019-09-24) (64-bit) using Windows 7 and Windows 10.

I'll add a product and component so the corresponding dev team can take a look at it, but feel free to change it for a more appropriate one.

Regards,

Status: UNCONFIRMED → NEW
Component: Untriaged → Debugger
Ever confirmed: true
Product: Firefox → DevTools

Thanks for the report!

I can reproduce this on my machine (reproducible on Win as well as MacOS)

Might be also problem with the basic Context menu API (not necessarily Debugger issue).

Honza

Has STR: --- → yes
Priority: -- → P2

We're using formatKeyShortcut to replace stuff like CommandOrControl on Windows and Mac...but we're never passing CommandOrControl into that function -- only the letter of the accelerator (i.e. "b"). The modifiers are being added elsewhere which is why the symbols aren't properly displaying.

Pushed by dwalsh@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/864c928edc5b
Fix context menu accelerator text r=jlast
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 71
Assignee: nobody → dwalsh
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: