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:
parent
ea5d9d40e1
commit
f932906c0d
1 changed files with 4 additions and 0 deletions
|
@ -62,6 +62,10 @@ JX.behavior('differential-toggle-files', function(config) {
|
||||||
if (!id || !id.match(/^#.+/)) {
|
if (!id || !id.match(/^#.+/)) {
|
||||||
return;
|
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.
|
// The target may have either a matching name or a matching id.
|
||||||
var target;
|
var target;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue