Closed
Bug 312882
Opened 20 years ago
Closed 1 year ago
Command-arrow gets caught by page arrow key handler
Categories
(Camino Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: sfraser_bugs, Unassigned)
References
()
Details
Attachments
(1 file)
|
785 bytes,
text/html
|
Details |
If a page watches for key press events and looks for arrow keys (for example),
their event handler fires for Command-key combinations. This is wrong.
| Reporter | ||
Comment 1•20 years ago
|
||
| Reporter | ||
Comment 2•20 years ago
|
||
It's not clear to me whether the page should get Command-key combinations first.
Comment 3•20 years ago
|
||
Cross-product, cross-platform
This is less of a problem than I thought it was initially. The page gets the
event, but can't override back/forward history traversal unless history is
exhausted in the relevant direction.
Are we willing to go so far as to flat-out refuse to fire command events at
content on the Mac? It might not affect anything significant, since there's no
usable meta key on Windows. (At the other end of the spectrum, some developers
have asked to be able to provide their own command-Q handlers in content, to
which I say "nyuh-uh.")
Comment 4•20 years ago
|
||
I'm for blocking commands that shouldn't be overridden, for sure (Cmd-Q, and the
like). FWIW, I catch command-click on some popup stuff to make sure I'm not
throwing up a popup window if the user command-clicked on a link that would
spawn a popup otherwise (popup and new tab with identical content = irritating).
Mass-reassign of bugs still assigned to pinkerton to nobody; filter on "NoMoPinkBugsInCamino".
Assignee: mikepinkerton → nobody
QA Contact: general
This was the premise of bug 459744 and bug 569130, right?
It's unclear to me what was considered to be the problem here (the page saw the keystroke, or the page overrode the keystroke?). Even now, it appears the page can still see (some of) the keystroke, but not eat it (for supported keystrokes, of which neither real Back/Forward nor Cmd-Arrows fake back/forward are); see smaug's testcase which does eat keys (http://mozilla.pettay.fi/moztests/showkeys.html) or either of the all-consuming testcases in bug 459744.
So I'd dupe this to bug 569130, but someone please correct me if the bug was about something else.
You need to log in
before you can comment on or make changes to this bug.
Description
•