Closed Bug 165584 Opened 22 years ago Closed 22 years ago

change default pref for Ctrl+Enter to open page in new tab (also middle-click)

Categories

(Core :: DOM: UI Events & Focus Handling, enhancement)

x86
All
enhancement
Not set
normal

Tracking

()

VERIFIED WONTFIX

People

(Reporter: aaronlev, Assigned: aaronlev)

Details

Attachments

(1 file)

There is a pref for Ctrl+Enter, whether it should open in a new page or a new tab.

Right now the default is for it to open in a new page.
I think the default pref should be to open in a new tab - tab browsing is our
killer feature, we should make it as convenient as possible for new users to get
the most out of it. It's faster than loading in a new page, it's just awesome. 

I think it should be made more convenient for keyboard users. Having Ctrl+Enter
open a link in a new tab is especially useful for keyboard users.

I'd like to solicit opinions on this. Do people agree?
Either that or we should give up on the idea of using Alt+Enter for properties
(which is standard in Windows), and use it for open in new tab. Properties are
available via the context menu anyway (Shift+F10 or Ctrl+Space for context menu).
I think this is a great idea.  I think that, at first, just following the
existing Control+Enter pref would be good.  But adding another option like:

  Keyboard 'enter' opens links:
   X In a new tab
   O In current window
   O In a new window

would be useful as well.  Perhaps if tabbed browsing is enabled, default to
"open in new tab", otherwise use the current "open in current window".  
I'd like to make shift+enter and shift+click Open Link in New Window (bug 85169)
for compatibility with IE for Windows and ctrl+enter and ctrl+click Open Link in
New Tab.  I am opposed to simply changing the default ctrl+click pref without
adding shift+click for Open Link in New Window because I think windows are
better than tabs in most cases.
I don't think we should use alt+enter to open in a tab. I like the idea of
making ctrl+enter by default open in a new tab instead of in a new window (do we
support this yet?), so this should be a one line patch. Comment 2 is something
for a new bug (doubt we'll do that anytime soon though, if ever).
Jag, why are you opposed to Alt+Enter for this?
Severity: normal → enhancement
Summary: RFE : change default pref for Ctrl+Enter to open page in new tab → change default pref for Ctrl+Enter to open page in new tab
I agree that tabbed browsing should be the default. Everyone I have asked thinks
that tabbed browsing in Mozilla is just awesome, they love it!

I assume this bug also covers making "Middle-click or control-click..." also
being on per default?
Summary: change default pref for Ctrl+Enter to open page in new tab → change default pref for Ctrl+Enter to open page in new tab (also middle-click)
Please don't break middle-click to fix a keyboard nav problem.  You're changing
a behavior that's been in place for going on 8-10 years now....
Sounds like the middle click folks prefer new window, keeping it the same.
That means we'll have to add a new pref that works separately from middle click.
Please do not change middle-click to open a tab.
ctrl+enter, maybe, but not middleclick.
Here are the prefs we have:

|-----------------------------------------------------------|
| Open Tabs instead of Windows for:                         |
|  [x] Middle-click or control-click on links in a Web page |
|  [x] Control+Enter in the Location bar                    |
|------------------------------------------------------------

People who don't know that Control+Enter will do what middle-click and
control-click do, won't realize that the first pref is what needs to get checked
if they want this.

Why do middle-click and control-click need to do the same thing?

I'm not even sure how to fix this bug any more ... if people don't want the
default for middle-click to change, then we'll need to add a new pref that
explicitly sets what Control+Enter does. Either that, or we can make Alt+Enter
the key to open in a new tab.
> Why do middle-click and control-click need to do the same thing?

It seemed natural to make them do the same thing, seeing as they both already
did "open in new window" before tabbrowser appeared.
But if 

Control+Enter == Control+Click
and middle+click == control+click

then either all 3 need to be the same, or we need to make middle+click use a
different pref from control+click.

At least the prefs text should be specific about which of them affects
control+enter. The user doesn't necessarily know they're equivalent.
Here's my suggestion:

Open Tabs instead of Windows for:  
[x] Control+enter in the Location bar

would change to
Open Tabs instead of Windows for:  
[x] Control+enter in the Location bar or on links in a web page

The pref would default to checked.
As it turns out, we can't really change this without adding another pref --
separating out middle click from ctrl-click/enter. That's because mod+enter is
hard coded to literally simulate a mod+click.

I'm going to suggest we mark this WONTFIX because of that.

I'd like to file a new bug to make the INSERT key open a link in a new tab in
the background. Shift+insert would open something in a new tab in the
foreground. That way there will be a ready-made shortcut no matter what the user
prefers.
Marking WONTFIX, now that bug 185270 has been checked in, allowing
Insert/Shift+Insert to open a link in a new tab, no matter what the prefs are.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → WONTFIX
v wf.
Status: RESOLVED → VERIFIED
Component: Keyboard: Navigation → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: