Closed Bug 265711 Opened 20 years ago Closed 20 years ago

only command+numbers should switch tabs (control + number key switches tab instead of activating accesskey)

Categories

(Firefox :: Disability Access, defect)

PowerPC
macOS
defect
Not set
major

Tracking

()

RESOLVED FIXED
Firefox1.5

People

(Reporter: tdw, Assigned: asaf)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.3) Gecko/20041015 Firefox/0.10
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.3) Gecko/20041015 Firefox/0.10

Both control + <number> and command + <number> are switching tabs, when there is
a tab opened matching <number>, instead of activating the accesskey.

Tab switching is handled by command + <number> on Macs. Accesskey activation has
always been control + <accesskey>. 


Reproducible: Always
Steps to Reproduce:
1. Load page with numbers as accesskeys
2. Open a few tabs
3. Use control + <accesskey>



Actual Results:  
Tab switching occurs.

Expected Results:  
Accesskey activation.
Aaron, is metaKey both command and control on Mac?
(In reply to comment #1)
> Aaron, is metaKey both command and control on Mac?

meta is just command.
note: only cmd+[1-9] keyboard shortcuts switch tabs, at least here ;)
(In reply to comment #3)
> note: only cmd+[1-9] keyboard shortcuts switch tabs, at least here ;)
That's correct. I should have been more clear.
(In reply to comment #4)
> (In reply to comment #3)
> > note: only cmd+[1-9] keyboard shortcuts switch tabs, at least here ;)
> That's correct. I should have been more clear.

So, what's the bug?
> > > note: only cmd+[1-9] keyboard shortcuts switch tabs, at least here ;)
> > That's correct. I should have been more clear.
> 
> So, what's the bug?
duh.... sorry folks, I misread the above.


cmd+[1-9] should switch tabs. ctl+[1-9] should activate accesskeys.

The bug is: ctl+[1-9] switches tabs when it should be activating accesskeys. If
there is no accesskey[1-9] on a page then nothing should happen when presing
ctl+[1-9].

I see this bug on 2 different installs of FF 0.10
This bug really has to go away as it severely harms web applications that rely on number accesskeys. In 
our application we use it for addressing internal sections that are permanently used and flipped and FF 
1.0RC1 behaviour is disastrous as it totally breaks the accessibility of the page.

CMD-Number switching is okay. Mapping CTRL at all on the Mac is just evil. Please remove this asap. 
We'd be migrating back to Mozilla Suite if this would stay in.
er, we don't have Ctrl mapped to this at all.  I don't think we have
Ctrl-anything mapped explicitly.

http://lxr.mozilla.org/aviarybranch/source/browser/base/content/browser.js#1058
is the code in question, it uses metaKey (Cmd) as the trigger on Mac, Alt on
other UNIX platforms, and Ctrl on everything else (i.e. Windows).

So I'm not sure what's going on with you, but it shouldn't be working if it is.
Don't know too much about other platforms but on the Mac CTRL is the de-facto modifier for 
accesskeys. Safari and all WebKit/WebCore browsers are using it. ALT is a general modifier to type all 
kinds of special characters and CMD is the general command key and the only one that makes sense for 
switching tabs. CTRL should be used for accesskeys.

It would be even better to have it configurable but as long there is no configuration opportunity, CTRL 
is the way to go and no other programs functions should reroute CTRL key combinations.
restating in simpler terms: The code uses Cmd on Mac, Ctrl on non-UNIX, and Alt
on UNIX.  End of story.

Ctrl shouldn't work.  Period.
(In reply to comment #10)
> restating in simpler terms: The code uses Cmd on Mac, Ctrl on non-UNIX, and 
Alt
> on UNIX.  End of story.
> Ctrl shouldn't work.  Period.

To make it even more clear _Ctrl works on mac ff_ for *accesskeys*. For tab 
navigation (by numbers) the keybinding is Cmd+1-9.
Pretty sad this bug is still in Firefox 1.0 final.

It totally disables the use of 0-9 shorcuts on Mac OS X.
Assignee: aaronleventhal → bugs
The behaviour of Firefox is abolutely correct if only one tab is open. In this
case CTRL + Number really acts as accesskey. But as soon as there are more than
one tab all numbers where tabs exist act as tab switcher. If there are 2 Tabs
open CTRL + 2 no longer acts as accesskey but switches tabs. This behaviour is
not correct. I would expect CTRL + number to always act as accesskey no matter
how many tabs are opened.
By chance are you guys using any sort of tab extensions?  There has to be some
reason why keys that aren't bound in the code are somehow working for you.
I /think/ comment 13 isn't related (using windows?)
The problem as I describe it is the behaviour under Mac OS X. I am not using any
sort of tab extension. Nevertheless I disabled all extensions but the problem is
still there.
Attached patch patchSplinter Review
Yeah, we suck that much.
Assignee: bugs → bugs.mano
Status: NEW → ASSIGNED
Attachment #170109 - Flags: review?(mconnor)
Target Milestone: --- → Firefox1.1
The patch solves the problem.

Thank you very much :)
Depends on: 277122
Flags: blocking-aviary1.1?
Comment on attachment 170109 [details] [diff] [review]
patch

I thought I reviewed this already!
Attachment #170109 - Flags: review?(mconnor) → review+
Summary: control + number key switches tab instead of activating accesskey → only command+numbers should switch tabs (control + number key switches tab instead of activating accesskey)
Whiteboard: ready to land
mconnor: can you check it in for me? Thanks!
checked in by smontagu.
Flags: blocking-aviary1.1?
Whiteboard: ready to land
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
*** Bug 293868 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: