Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #7 from thierry-rietsch/master

Fixed the current version to work with turbolinks.
  • Loading branch information...
commit fe31fe34d028deaa84e4ce05d86a954e39e6695f 2 parents 7beb786 + da6c1ee
@kugaevsky authored
View
6 lib/generators/mousetrap/install/templates/keybindings.js.coffee
@@ -1,4 +1,10 @@
$ ->
+ handleKeyBindings()
+
+$(document).on 'page:change', ->
+ handleKeyBindings()
+
+handleKeyBindings = ->
# Hotkey binding to links with 'data-keybinding' attribute
# Navigate link when hotkey pressed
$('a[data-keybinding]').each (i, el) ->
Please sign in to comment.
Something went wrong with that request. Please try again.