Ah, it's not ng-href of course, I can see the issue in the
$LocationProvider;
Shouldn't this line in $rootElement.on('click',...);
if (event.ctrlKey || event.metaKey || event.which == 2) return;
actually be;
if (event.shiftKey || event.ctrlKey || event.metaKey || event.which
== 2) return;
On Friday, September 12, 2014 11:22:46 AM UTC+1, Daniel Sinclair wrote:
>
> I'm using ng-href along and HTML5 mode with $routeProvider and it works
> nicely. Once I stopped using ng-click and relied on the routing even
> CTRL+Click opens in a new tab.
>
> However, SHIFT+Click doesn't appear to work properly and open a new window
> as it should.
>
> Shouldn't ng-href detect the shift key and bypass the normal routing
> treating like a regular browser link?
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.