Closed
Bug 364845
Opened 18 years ago
Closed 12 years ago
ctrl-shift-pageup/down should move current tab left/right
Categories
(Firefox :: Tabbed Browser, enhancement)
Tracking
()
VERIFIED
FIXED
Firefox 20
People
(Reporter: tuukka.tolvanen, Assigned: marius)
References
Details
Attachments
(1 file)
1003 bytes,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
ctrl-shift-pageup/down should move current tab left/right, like they do in e.g. gnome-terminal
Comment 1•16 years ago
|
||
Ubuntu Bug:
https://bugs.launchpad.net/bugs/192092
Duplicates:
Bug 423734
Bug 391084
Does not work in Firefox 3.5.
See Also: → https://launchpad.net/bugs/192092
Assignee | ||
Comment 5•12 years ago
|
||
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?
Attachment #689087 -
Flags: review?(gavin.sharp)
Comment 6•12 years ago
|
||
(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.
Comment 7•12 years ago
|
||
It looks like bug 822068 is also touching this code.
Noticed that these key combinations have been used in Caret Browsing mode.
Updated•12 years ago
|
Flags: needinfo?(gavin.sharp)
Comment 10•12 years ago
|
||
(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?
Flags: needinfo?(gavin.sharp)
Comment 11•12 years ago
|
||
Comment on attachment 689087 [details] [diff] [review]
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.
Attachment #689087 -
Flags: review?(gavin.sharp) → feedback+
Comment 12•12 years ago
|
||
(In reply to :Gavin Sharp (use gavin@gavinsharp.com 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.
Comment 13•12 years ago
|
||
OK, let's do this then!
Thanks again for the patch, Marius.
Assignee: nobody → marius
Keywords: checkin-needed
Updated•12 years ago
|
Attachment #689087 -
Flags: feedback+ → review+
Comment 14•12 years ago
|
||
Keywords: checkin-needed
Comment 15•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 20
Comment 16•12 years ago
|
||
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.
Status: RESOLVED → VERIFIED
Comment 17•11 years ago
|
||
I'm curious about why this was not implemented via xul overlay.
Comment 18•11 years ago
|
||
(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.
You need to log in
before you can comment on or make changes to this bug.
Description
•