Closed Bug 1697158 Opened 4 years ago Closed 4 years ago

JavaScript causes Firefox Responsive Design Mode (Ctrl+Shift+M) not to toggle

Categories

(DevTools :: Responsive Design Mode, defect)

Firefox 87
defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: vegemann7, Unassigned)

Details

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

Steps to reproduce:

I added an audio player JavaScript to my page.

Actual results:

The JavaScript now causes Firefox Responsive Design Mode not to toggle, BUT only if I use (Ctrl+Shift+M) on the keyboard. It works fine if I click on Tools>Web Developer>Responsive Design Mode.

Expected results:

(Ctrl+Shift+M) on the keyboard should toggle Responsive Design Mode.

Visit page here: https://www.boulderdrumstudio.com/marilyn_moses.htm

JavaScript found on line 183.

The Bugbug bot thinks this bug should belong to the 'DevTools::Responsive Design Mode' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Responsive Design Mode
Product: Firefox → DevTools

Unless a shortcut is a critical escape hatch, the page (and javascript living on the page) should be allowed to catch keyboard events and prevent default behavior. This is the case for "M" which is used by the audio player to mute/unmute.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.