Mountain Project Logo

keyup handler causing weird behaviour for opening links in new tab


Original Post
Matt Enlow · · Wyoming · Joined Jan 2013 · Points: 554

This is on Chrome 63.0, OSX

When CMD+Clicking a link, the expected behaviour is that the link is opened in a new tab in the background.

instead, on MP, it causes a moment of noticeable lag, opens the new tab, and gives it focus. Right click + "Open link in new tab" works as expected.

The behaviour's fixed after removing a keyup listener on <a> elements.

mbk · · Unknown Hometown · Joined Jul 2013 · Points: 0
Guideline #1: Don't be a jerk.

Post a Reply to "keyup handler causing weird behaviour for openi…"
in the Discuss MountainProject.com

Log In to Reply