Open Bug 657080 Opened 14 years ago Updated 3 years ago

Binding CTRL+PGUP/PGDOWN cannot prevent browser tab switching

Categories

(Firefox :: Keyboard Navigation, defect)

4.0 Branch
x86
Windows 7
defect

Tracking

()

REOPENED

People

(Reporter: bugs, Unassigned)

References

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 Many text editing web apps need their own behavior for PGUP/PGDOWN/CTRL+PGUP/CTRL+PGDOWN. However, despite being able to bind CTRL+PGUP the browser will still switch tabs and it is unpreventable from within Javascript. Reproducible: Always Steps to Reproduce: 1. Bind CTRL+PGDOWN to do do a useful callback handler. 2. Press CTRL+PGDOWN Actual Results: The callback handler will fire, but the browser will also switch tabs. Expected Results: The browser to not switch tabs, or be able to prevent the browser from switching tabs by some mechanism.
Version: unspecified → 4.0 Branch
Most users, like me, expect that the browser's keyboard actions do their browser job. See file bug 933470, file bug 380637.
Based on bug 933470, Firefox now matches the "expected behavior" described in comment 0 (although as pointed out above, this new behavior is itself a problem for many users; see bug 380637 for much more on that).
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Depends on: 933470
Resolution: --- → WORKSFORME
Attached file test case
Hmm, it seems I spoke too soon. At least in this simple testcase in Firefox 33 on Linux, ctrl-pgup/down still switch tabs even when the event is captured and canceled.
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: WORKSFORME → ---
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: