Before the api change (like cache systeme etc...) you can click like on mouse scroller to open page on new tab

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

michaelmol’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

Since I don't have a third mouse button, it is very hard to test it myself.
Can you please give me some more details, about what browser / os you are using?

Musa.thomas’s picture

using chrome Version 32.0.1700.14 beta-m Aura Windows 7

michaelmol’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)
Cogax’s picture

Status: Closed (won't fix) » Needs review
Related issues: +#2366021: Open link in a new tab or window
FileSize
433 bytes

So i use also Chrome and it still not works. I made a little change in the Javascript, but i don't have the time to look if thats the right way to fix it. I attached the patch.

Edit: It's the wrong patch attached, sorry. See right bellow

Cogax’s picture

Cogax’s picture

FileSize
622 bytes
michaelmol’s picture

Status: Needs review » Fixed

Added href in the result window, should now be clickable with the third mouse button.

  • michaelmol committed d5d60e6 on 7.x-2.x
    Issue #2010936 by Cogax, michaelmol, Emerya.thomas: Third click mouse...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Cogax’s picture

Version: 7.x-2.0 » 7.x-2.x-dev
Status: Closed (fixed) » Needs review
FileSize
1.82 KB

Well, the solution wasn't good. The link was wrong because the link doesn't respect basePath.
I made a new Patch which removes the previous comitted changes and goes another way. I catched the middle mouse click event as well as the ctrlKey event to decide if it should open a new tab.

michaelmol’s picture

Status: Needs review » Needs work

Looks good, can update the patch and add a comment that event.which ==2 is the 'third mouse button'.

Cogax’s picture

Status: Needs work » Needs review
FileSize
1.94 KB
930 bytes

Added comments.