Closed Bug 439336 Opened 16 years ago Closed 16 years ago

Cmd/Command+Shift+"[" / "]" should switch tabs on Mac

Categories

(Other Applications :: ChatZilla, defect)

x86
macOS
defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: asqueella, Assigned: bugzilla-mozilla-20000923)

References

Details

(Keywords: polish, Whiteboard: [cz-0.9.84])

Attachments

(1 file, 2 obsolete files)

As in Safari, Firefox and other Mac applications.
Version: unspecified → Trunk
This patch also makes the existing shortcuts stricter by requiring the unnecessary modifiers to not be pressed (e.g. Control-Shift?-Tab now requires that Alt is not pressed to work).
Assignee: rginda → silver
Status: NEW → ASSIGNED
Attachment #338658 - Flags: review?(gijskruitbosch+bugs)
Attachment #338658 - Attachment is obsolete: true
Attachment #338757 - Flags: review?(gijskruitbosch+bugs)
Attachment #338658 - Flags: review?(gijskruitbosch+bugs)
Correct patch this time!
Attachment #338757 - Attachment is obsolete: true
Attachment #338758 - Flags: review?(gijskruitbosch+bugs)
Attachment #338757 - Flags: review?(gijskruitbosch+bugs)
Comment on attachment 338758 [details] [diff] [review]
Same but without old Command-Shift?-Tab shortcut

>=== modified file 'xul/content/handlers.js'
> <snip>
>-        case 33: /* pgup */
>-            if (e.ctrlKey)
>+        case 33: /* Page Up */
>+            // Control-Page Up => previous tab (all platforms)
>+            if (e.ctrlKey && !e.altKey && !e.metaKey && !e.shiftKey)

Are we sure there are no keyboard layouts where the shift key thing will get in the way? (thinking in particular of laptop keyboards - on my macbook, page up/dn are on the arrow keys, though I think they require the Fn key rather than the shift key). I don't think it would hurt to leave that one off here. :-)
The same goes for the []/{} thing. Does that work with other layouts as well, where the {} might not be on the same key as [] ? Maybe I'm misunderstanding how keyboard layouts are represented to JS here, though.

As a second point, would it be possible to combine the code for page up/dn in a similar way as is done in the arrows and braces cases? It would reduce code duplication and hopefully improve readability, I think...


With those comments addressed, r=me ! :-)
Attachment #338758 - Flags: review?(gijskruitbosch+bugs) → review+
At least for the []/{} thing, I could find no definitive answer on what the shortcut actually was. Some things said it was Control-{/}, others said Control-Shift-[/]. If you can find out which it officially should be, by all means do so. (Although Control-{/} is going to need quite a bit of work to that code...)
Checked in with page up/down collapsed --> FIXED.
F***ing new Bugzilla interface of FAIL.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Whiteboard: [cz-0.9.84]
Blocks: 856054
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: