Closed Bug 1574057 Opened 4 years ago Closed 3 years ago

preventDefault doesn't work for Alt key

Categories

(Core :: DOM: Events, defect, P2)

Unspecified
Windows
defect

Tracking

()

RESOLVED DUPLICATE of bug 1292053

People

(Reporter: xidorn, Unassigned)

Details

(Keywords: regression)

Attachments

(1 file)

Attached file testcase

Steps to reproduce:

  1. open the testcase on Windows
  2. press alt key

Actual result:
the menu bar shows up

Expect result:
the menu bar should not show up

The testcase basically just invoke preventDefault on every keyup event. This works fine on Chrome (if you press alt without preventDefault, you can see that the three dot menu on the top right gets activated on Chrome).

This is important for web apps which want to utilize alt key as a switch of certain functionality.

Is this a recent regression?

Priority: -- → P2

I believe this is a regression from e10s. I tested a version of Firefox 48 where e10s is enabled by default but it is still possible to open non-e10s window, this issue exists on e10s window but not on non-e10s one.

Keywords: regression

This is very annoying in noVNC which gives you remote access to a different machine. A fix would be appreciated.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.