bindEvents: () ->
@element.on "click", () ->
target = this.href.replace /.*(#.*)/, "$1"
if target
$target = $(target)
$target.attr "tabindex", 0
$target.focus()
$target.attr "tabindex", -1
$(@element.attr("href").replace(/.*(#.*)/, "$1")).on "blur", ->
$(this).removeAttr("tabindex")
$(document).on "keydown", (ev) ->
if not $(ev.target).is ":input"
$("html").addClass "is-keyboard"
$(document).on "mousedown", (ev) ->
$("html").removeClass "is-keyboard"
EPFL accessibility plugin
Handle accessibility optimisations
requires: jQuery or Zepto DOM library
author: Julien Ramboz
version: 1.0