function onSpaceKey(evt) {
  if (evt.keyCode === KeyCodes.SPACE) {
    evt.preventDefault() // Stop page from scrolling
    evt.stopImmediatePropagation()
    evt.stopPropagation()
    // Trigger the click event on the link
    evt.currentTarget.click()
    return false
  }
}
// Links don't normally respond to SPACE, so we add that functionality via this handler
Links don't normally respond to SPACE, so we add that functionality via this handler
Links don ' t normally respond to SPACE so we add that functionality via this handler
function onSpaceKey(evt) {
  if (evt.keyCode === KeyCodes.SPACE) {
    evt.preventDefault() 
    evt.stopImmediatePropagation()
    evt.stopPropagation()
    evt.currentTarget.click()
    return false
  }
}
function onSpaceKey ( evt ) { if ( evt . keyCode === KeyCodes . SPACE ) { evt . preventDefault ( ) evt . stopImmediatePropagation ( ) evt . stopPropagation ( ) evt . currentTarget . click ( ) return false } }
Links don't normally respond to SPACE, so we add that functionality via this handler
Links don ' t normally respond to SPACE so we add that functionality via this handler
// Stop page from scrolling // Trigger the click event on the link