Closed Bug 102602 Opened 24 years ago Closed 24 years ago

Accel+w should close a tab in tabbed mode

Categories

(SeaMonkey :: Tabbed Browser, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.7

People

(Reporter: akkzilla, Assigned: hyatt)

References

Details

(Keywords: access, dataloss)

Attachments

(1 file)

Last week, accel-W closed the current tab; today it's back to closing the whole window. We need to have a way of closing the current tab pane, whether it's accel-W or something else; I have no strong preferences but perhaps someone else does.
->tabbed browser
Component: Browser-General → Tabbed Browser
Keywords: access
QA Contact: doronr → blakeross
Some people in MozillaZine have suggested accel+F4 (consistent with Windows MDI conventions).
I've also seen suggestions of accel-shift-w -- easy to remember (similar to accel-w for closing a window) and doesn't have problems with F-keys being bound to window manager or OS level events, or not being on the keyboard at all.
accel-W has never closed the current tab. Control+f4 does currently close the current tab. I will make Accel+W close the current tab (and the window if you only have one tab), and make Accel+Shift+W always close the entire window.
Status: NEW → ASSIGNED
Summary: Need a way to close a tab → Accel+w should close a tab in tabbed mode
Target Milestone: --- → mozilla0.9.7
the accel-w can be done by editing navigator.js's function BrowserClose() var browser = getBrowser(); if (browser.mTabContainer.childNodes.length > 1){ browser.removeTab(browser.mCurrentTab); } else { not sure if the childNodes.length is the best method
*** Bug 105543 has been marked as a duplicate of this bug. ***
Hi - I submitted this under <a href="http://bugzilla.mozilla.org/show_bug.cgi?id=105620">bug 105620></a> - I did search for reports first, but didn't hit. I'm sorry. I feel very strongly that ctrl-n & ctrl-w should apply to the <b>current tab</b> when in tabbed mode - an additional 'shift' (ie ctrl-shift-n to open) would be my preference for opening & closing whole windows when in tabbed mode. Ctrl-t should not be 'open new tab' (the issue discussed in the other bug mentioned above) since that's <i>always</i> been 'get new mail' (which isn't operational when browsing, but good UI practice surely demands that you can't have totally different functions with the same keybinding).
Grrr... just lost a big bugzilla comment, trying to close another tab.
Keywords: dataloss
Copying comments (because comment referencing has to wait for bugzilla 2.16) ------- Additional Comments From timeless@mac.com 2001-10-22 20:05 ------- ctrl+shft+n is new blank page to edit, i suppose we could move that to ctrl+shift+e just for fun and added confusion.
QA Contact: blakeross → sairuh
*** Bug 106734 has been marked as a duplicate of this bug. ***
Attached patch Here it is!Splinter Review
Comment on attachment 55220 [details] [diff] [review] Here it is! r=jag
Attachment #55220 - Flags: review+
Who should sr= this patch? Blake, can you do the deed? /be
Er... isn't this already checked in? ^w is closing tabOrWindow shift^w is closing window I do like Illtud's suggestion about making ^N do a new tab in tab mode, and shift^N a new window. More consistant, and there's way too many tab prefs as it is. Should be one or two, eaither you prefer tabs over windows or you don't. Having a seperate pref for the toolbar buttons is just silly.
this is workin for me now, thank god. about ctrl-shift-n ... that is already bound to "blank page to edit" ... which seems a little crackrock to me, but there it is.
yep, right now accel+w closes a tab and accel+shift+w closes the window [when tabs are present].
> ctrl-shift-n ... that is already bound to "blank page to edit" ...and that could move to ctrl-shift-e, which is ALSO more consistant. Actually, that doesn't even NEED a hotkey like that, it's already got a component bar icon, a tasks menu entry, and accel+4.
This is checkedi n, yeah. Oops. Marking fixed.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
actually verifying this time! used these commercial verif bits: linux [rh6.2] - 2001.11.06.12 winnt - 2001.11.06.12 mac 10.1 - 2001.11.06.08
Status: RESOLVED → VERIFIED
Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: