Closed
Bug 247238
Opened 20 years ago
Closed 20 years ago
Command-Enter does not open new tab/window from URL bar or search bar
Categories
(Camino Graveyard :: Tabbed Browsing, enhancement)
Tracking
(Not tracked)
RESOLVED
FIXED
Camino0.9
People
(Reporter: Jim.Walton, Assigned: mikepinkerton)
Details
Attachments
(1 file, 2 obsolete files)
13.85 KB,
patch
|
me
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7) Gecko/20040514 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7) Gecko/20040514 When manually entering a URL, holding Command while hitting enter only beeps, releasing command enters URL into current tab. A new tab can only be opened manually. Reproducible: Always Steps to Reproduce: 1. Enter URL manually into address bar 2. Hold down command key and press enter 3. Actual Results: System beeps, and nothing happens Expected Results: Open a new tab with the requested URL as in Mozilla or Safari
Comment 1•20 years ago
|
||
*** This bug has been marked as a duplicate of 164863 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Comment 2•20 years ago
|
||
Oops, didn't read carefully enough. Bug 164863 is about hitting command-enter on a selected link. Reopening. This should also work in the search bar, and it should open a new tab or window according to user preference. This is a slick feature that I always miss after using FF or Safari, so I'm nominating it for 0.9
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Summary: Command-Enter does not open new tab from address bar → Command-Enter does not open new tab/window from URL bar or search bar
Target Milestone: --- → Camino0.9
Updated•20 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•20 years ago
|
||
still true with 2004090408 (v0.8+)
Comment 4•20 years ago
|
||
This patch implements the requested feature for command-return in both the location bar and the search bar. It respects the user's prefs for command-clicking. That is to say, if command-click opens a link in a new window, command-return opens a search or url in a new window. If command-click opens in a new tab, command-return does likewise. If new windows/tabs open in the background, commmand-return generated new windows/tabs obey this. This is my first cut, and there is some code duplication between the command-return handler and the search/location handlers. The right way may be to refactor those to minimize duplication, but this is far less invasive. Let me know in the review if I should do the more invasive refactoring instead.
Updated•20 years ago
|
Attachment #158954 -
Flags: review?(joshmoz)
Updated•20 years ago
|
Attachment #158954 -
Flags: review?(joshmoz)
Comment 5•20 years ago
|
||
This version of the patch has exactly the same functionality but incorporates Mike's comments from IRC and performs the refactoring instead of duplicating code.
Attachment #158954 -
Attachment is obsolete: true
Updated•20 years ago
|
Attachment #159829 -
Flags: review?(qa-mozilla)
Comment 6•20 years ago
|
||
Comment on attachment 159829 [details] [diff] [review] version 2 looks good to me
Attachment #159829 -
Flags: review?(qa-mozilla) → review+
Updated•20 years ago
|
Attachment #159829 -
Flags: superreview?(pinkerton)
Assignee | ||
Comment 7•20 years ago
|
||
+typedef enum { + kDestinationNewWindow = 0, + kDestinationNewTab, + kDestinationCurrentView +} BWCOpenDest; nit. you don't need to typedef in C++, just C. this can be written as enum BWCOpenDest { ... } ; +-(void)performSearch:(SearchTextField *)searchField inView:(BWCOpenDest)destination inBackground:(BOOL)loadInBG name your params with in/out/io prefix to show they're parameters and not local variables. + // revert the text in the URL bar since it goes into a new tab/window + [mURLBar revertText]; is this sufficient to get back to the previous url? what if they made other changes before clearing it and typing this url? i'd say you should get the url from the page and set it to that.
Comment 8•20 years ago
|
||
this should address pinkerton's comments.
Attachment #159829 -
Attachment is obsolete: true
Updated•20 years ago
|
Attachment #159829 -
Flags: superreview?(pinkerton)
Comment 9•20 years ago
|
||
Comment on attachment 160362 [details] [diff] [review] version 3 moving sr request to the updated patch
Attachment #160362 -
Flags: superreview?(pinkerton)
Assignee | ||
Comment 10•20 years ago
|
||
landed.
Status: NEW → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → FIXED
Comment 11•20 years ago
|
||
*** Bug 164863 has been marked as a duplicate of this bug. ***
Updated•20 years ago
|
Attachment #160362 -
Flags: superreview?(pinkerton) → superreview+
Comment 12•20 years ago
|
||
marking sr+ since pink sr'd and landed, to get it off "my requests".
You need to log in
before you can comment on or make changes to this bug.
Description
•