ctrl+shift+pg.up/dn does not move tabs

Bug #192092 reported by David Prieto
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mozilla Firefox
Fix Released
Medium
firefox (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Binary package hint: firefox-3.0

I have noticed that the ctrl+shift+pg.up/dn key combination does not move tabs left or right in firefox, as it does in every other app in ubuntu. Any chance of this being fixed?

Revision history for this message
David Prieto (frandavid100-gmail) wrote :

Binary package hint: firefox-3.0

I have noticed that the ctrl+shift+pg.up/dn key combination does not move tabs left or right in firefox, as it does in every other app in ubuntu. Any chance of this being fixed?

Revision history for this message
Alexander Sack (asac) wrote :

indeed. this could be improved to better match the gnome desktop experience. can someone look if there is a bug in bugzilla.mozilla.org for this already?

Changed in firefox-3.0:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Rolf Leggewie (r0lf) wrote :

It does so now. Can we close this?

Changed in firefox-3.0:
assignee: nobody → r0lf
status: Confirmed → Incomplete
Revision history for this message
David Prieto (frandavid100-gmail) wrote :

I'm trying RC1 right now and it doesn't.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

RC1? That's not from a ubuntu package, is it?

Revision history for this message
Rolf Leggewie (r0lf) wrote :

Ctrl+*Shift*+PgUp, right? I was trying out Ctrl+PgUp which switched to the next tab (also nice to know, thanks)

Reconfirming

Changed in firefox-3.0:
assignee: r0lf → nobody
status: Incomplete → Confirmed
Revision history for this message
David Prieto (frandavid100-gmail) wrote :

Yes, Ctrl+PgUp changes tabs but Ctrl+*Shift*+PgUp moves them left and right -well, not in Firefox, but it should-.

About RC1, it was uploaded to the repos earlier today.

Revision history for this message
Micah Gersten (micahg) wrote :

Thank you for your bug report. This bug has been reported to the developers of the software. You can track it and make comments at:
https://bugzilla.mozilla.org/show_bug.cgi?id=423734

Changed in firefox:
status: Unknown → New
Changed in firefox-3.0 (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
In , Mozilla-bugs-micahscomputing (mozilla-bugs-micahscomputing) wrote :

Ubuntu Bug:
https://bugs.launchpad.net/bugs/192092

Duplicates:
Bug 423734
Bug 391084

Does not work in Firefox 3.5.

Revision history for this message
Micah Gersten (micahg) wrote :

Found original upstream bug.

Changed in firefox:
status: New → Unknown
Revision history for this message
Micah Gersten (micahg) wrote :

Moving tracking to Firefox 3.5

Changed in firefox-3.5 (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Micah Gersten (micahg) wrote :

Firefox 3.0 is only receiving Security Updates and major bug fixes at this point.

Changed in firefox-3.0 (Ubuntu):
status: Triaged → Won't Fix
Changed in firefox:
status: Unknown → Confirmed
Revision history for this message
In , Tony Chang (tony-ponderer) wrote :

*** Bug 391084 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Tony Chang (tony-ponderer) wrote :

*** Bug 423734 has been marked as a duplicate of this bug. ***

Changed in firefox:
importance: Unknown → Wishlist
Revision history for this message
In , Gavin Sharp (gavin-sharp) wrote :

*** Bug 702960 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Marius Gedminas (mgedmin) wrote :

Created attachment 689087
patch version 2

Version 2 of the patch, with style changes as requested by Gavin in comments of bug 702960.

Tested, works for me.

One thing I hadn't noticed before: moveTabForward/Backward leaves keyboard focus on the tab itself, which is something I didn't expect. This explains why I had occasional difficulties scrolling web pages with Space or PgUp/PgDown lately -- keyboard focus was in the wrong place, and I didn't notice. Any ideas how to avoid that focus change?

Revision history for this message
In , Dao (dao) wrote :

(In reply to Marius Gedminas from comment #5)
> One thing I hadn't noticed before: moveTabForward/Backward leaves keyboard
> focus on the tab itself, which is something I didn't expect. This explains
> why I had occasional difficulties scrolling web pages with Space or
> PgUp/PgDown lately -- keyboard focus was in the wrong place, and I didn't
> notice. Any ideas how to avoid that focus change?

You can remove the focus change from the moveTabBackward, moveTabForward, moveTabToStart and moveTabToEnd methods and do it directly in the keypress handler where needed.

Revision history for this message
In , Gavin Sharp (gavin-sharp) wrote :

It looks like bug 822068 is also touching this code.

Revision history for this message
In , Ithinc (ithinc) wrote :

So ctrl-shift-home/end should move current tab to start/end?

Revision history for this message
In , Ithinc (ithinc) wrote :

Noticed that these key combinations have been used in Caret Browsing mode.

Revision history for this message
In , Gavin Sharp (gavin-sharp) wrote :

(In reply to ithinc from comment #9)
> Noticed that these key combinations have been used in Caret Browsing mode.

Do you have a pointer to the code?

Revision history for this message
In , Gavin Sharp (gavin-sharp) wrote :

Comment on attachment 689087
patch version 2

Code-wise, this looks good. I think the only suggestions I would make is that we should probably limit this behavior to Linux somehow (probably by using an #ifdef XP_GNOME like the one in browser-sets.inc).

I don't know the answers to ithinc's concerns, though (about the desired behavior for ctrl+shift+home/end, and possible conflict with other shortcuts) - we should sort that out before landing this.

Revision history for this message
In , Ithinc (ithinc) wrote :

(In reply to :Gavin Sharp (use <email address hidden> for email) from comment #10)
> (In reply to ithinc from comment #9)
> > Noticed that these key combinations have been used in Caret Browsing mode.
>
> Do you have a pointer to the code?

I overlooked it. ctrl-shift-home/end are used but ctrl-shift-pageup/down not.

Revision history for this message
In , Gavin Sharp (gavin-sharp) wrote :

OK, let's do this then!

Thanks again for the patch, Marius.

Revision history for this message
In , Ryanvm (ryanvm) wrote :
Revision history for this message
In , Ed Morley (edmorley) wrote :
Changed in firefox:
status: Confirmed → Fix Released
Revision history for this message
In , Cornel-ionce (cornel-ionce) wrote :

Working on Firefox Nightly.
User Agent: Mozilla/5.0 (X11; Linux i686; rv:21.0) Gecko/20130129 Firefox/21.0
Build ID: 20130129030851.

Marking as verified fixed.

no longer affects: firefox-3.0 (Ubuntu)
Revision history for this message
Adolfo Jayme Barrientos (fitojb) wrote :

The fix will be available in Firefox 21.

affects: firefox-3.5 (Ubuntu) → firefox (Ubuntu)
Changed in firefox (Ubuntu):
status: Triaged → Fix Committed
Changed in firefox (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
In , Tabutils (tabutils) wrote :

I'm curious about why this was not implemented via xul overlay.

Revision history for this message
In , Dao (dao) wrote :

(In reply to ithinc from comment #17)
> I'm curious about why this was not implemented via xul overlay.

There's not a great chance that you'll get a reply here. Feel free to file a new bug and propose a patch.

Changed in firefox:
importance: Wishlist → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.