Closed Bug 1614951 Opened 4 years ago Closed 4 years ago

Pressing ctrl key on the keyboard prevents mouseUp events from happening

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

68 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: bouallegue.takwa, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0

Steps to reproduce:

  • Press the mouse left button and keep it down
  • While moving the mouse, press down the ctrl key and keep it down
  • Release the mouse

Actual results:

No mouseUp event is triggered

Expected results:

A mouseUp event should be triggered.

Might be worth to mention we are using React

I'm sorry this is no bug from Firefox, the issue was that we were only listening to the left mouse button (so mouseEvent.button = 0) while once we press ctrl key, the mouseUp event will get a button code 2. I'm closing this issue

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
Component: Untriaged → DOM: UI Events & Focus Handling
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.