Skip to content

Commit 4c4f87b

Browse files
committed
[fixed] alt click on Link should count as modified
1 parent 97c02f1 commit 4c4f87b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/components/Link.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var RESERVED_PROPS = {
2727
* <Route name="showPost" path="/posts/:postId" handler={Post}/>
2828
*
2929
* You could use the following component to link to that route:
30-
*
30+
*
3131
* <Link to="showPost" postId="123"/>
3232
*
3333
* In addition to params, links may pass along query string parameters
@@ -134,7 +134,7 @@ function isLeftClick(event) {
134134
}
135135

136136
function isModifiedEvent(event) {
137-
return !!(event.metaKey || event.ctrlKey || event.shiftKey);
137+
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
138138
}
139139

140140
module.exports = Link;

0 commit comments

Comments
 (0)