Closed Bug 181586 Opened 23 years ago Closed 23 years ago

Ctrl+0 selects tenth tab instead of returning to 100% zoom

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firebird0.6

People

(Reporter: deanis74, Assigned: deanis74)

References

()

Details

Attachments

(1 file)

1. Open ten tabs 2. Select any tab but the tenth tab 3. Ctrl+- to zoom out 4. Ctrl+0 Expected Results: zooms back to 100% Actual Results: tenth tab is activated
Targetting to 0.6, as requested by Blake.
Target Milestone: --- → Phoenix0.6
If the intended behavior is that Ctrl+0 restores the text zoom, then the problem is in ctrlNumberTabSelection in browser.js. The change to make would be: var index = event.charCode - 49; if (index == -1) - index = 9; - if (index < 0 || index > 9) + index = 8; + if (index < 0 || index > 8) return;
Argh, that's not it at all. This is probably more correct. Merrily we spam along! var index = event.charCode - 49; - if (index == -1) - index = 9; - if (index < 0 || index > 9) + if (index < 0 || index > 8) return;
Attached patch patchSplinter Review
Yep, that fixes it. This patch maintains Ctrl+1 through Ctrl+9 but removes Ctrl+0 to select the tenth tab, leaving it strictly for restoring text zoom to 100%.
taking
Assignee: hyatt → dean_tessman
checked in
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
v.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: