Merge request tabs do not handle ctrl+click correctly

Summary

On a merge request, ctrl+clicking any of the tabs (discussion, commits, pipelines, changes) loads the content in the current browser tab rather than opening it up in a new browser tab.

Steps to reproduce

Go to a merge request page, and ctrl+click on any of the tabs, e.g. the "Changes" tab.

Example Project

Any MR on gitlab-ce — for example, the one that added support for ctrl+clicking MR tabs: gitlab-ce!8898.

What is the current bug behavior?

If you ctrl+click on any of the MR tabs, the current view/tab changes to show the selected content.

What is the expected correct behavior?

If you ctrl+click on any of the MR tabs, the current view/tab should remain unchanged, while the selected content launches in a new browser tab. The expected correct behavior can be seen by clicking with the middle button on a connected mouse.

Relevant info

Bug seen using Chrome 71.0 on Windows 10 with a laptop trackpad.

Output of checks

This bug happens on GitLab.com

Related issues

#51269 (moved)