1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-18 10:41:08 +01:00

Don't jump when I open a link on background

Summary:
When I open anchor on background then I don't want to jump on foreground.

NOTE: I am one problem away from deleting this altogether.

Test Plan: Ctrl clicked on lint error.

Reviewers: alanh

Reviewed By: alanh

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D3369
This commit is contained in:
vrana 2012-08-22 22:38:04 -07:00
parent ea5d9d40e1
commit f932906c0d

View file

@ -62,6 +62,10 @@ JX.behavior('differential-toggle-files', function(config) {
if (!id || !id.match(/^#.+/)) {
return;
}
var raw = e.getRawEvent();
if (raw.altKey || raw.ctrlKey || raw.metaKey || raw.shiftKey) {
return;
}
// The target may have either a matching name or a matching id.
var target;
try {