page.js icon indicating copy to clipboard operation
page.js copied to clipboard

Don’t prevent the browser’s default behavior corresponding to the Alt key

Open yuheiy opened this issue 5 years ago • 1 comments

In most browsers, clicking links with the Alt key has a special behavior, for example, Chrome downloads the target resource. As with other modifier keys, the router should stop the original navigation to avoid preventing the browser’s default behavior.

When users click a link while holding the Alt key together, the browsers behave as follows.

Windows 10:

Browser Behavior
Chrome 84 Download the target resource
Firefox 79 Prevent navigation and therefore do nothing
Edge 84 Download the target resource
IE 11 No impact

macOS Catalina:

Browser Behavior
Chrome 84 Download the target resource
Firefox 79 Prevent navigation and therefore do nothing
Safari 13 Download the target resource

yuheiy avatar Aug 08 '20 09:08 yuheiy

Coverage Status

Coverage remained the same at 93.033% when pulling 75722b0a977cd2b35ff38caff243f12c4998cb11 on yuheiy:alt-key into 4f9991658f9b9e3de9b6059bade93693af24d6bd on visionmedia:master.

coveralls avatar Aug 08 '20 09:08 coveralls