Skip to content

1.5.3

@ccampbell ccampbell released this Jul 2, 2015 · 1 commit to master since this release

  • Fixes issue with _belongsTo when using web comonents

Downloads

1.5.2

@ccampbell ccampbell released this Mar 30, 2015 · 4 commits to master since this release

  • Fixes broken AMD support introduced in version 1.5.0

Downloads

1.5.1

@ccampbell ccampbell released this Mar 28, 2015 · 7 commits to master since this release

Two quick things

  • Defaults target element to document if you just call new Mousetrap() on its own
  • Checks against document first in the _belongsTo function to improve performance

Downloads

1.5.0

@ccampbell ccampbell released this Mar 28, 2015 · 11 commits to master since this release

This release is long overdue. It brings a bunch of stuff.

  • Adds support for creating multiple instances of Mousetrap
  • Adds support for binding Mousetrap events to specific elements on the page (for example forms or form fields)

    For more information see http://craig.is/killing/mice#wrapping

  • Adds support for using Mousetrap as a common js module
  • Improves handling of + key in keyboard commands. Also adds an alias to reference + as plus to avoid confusion
  • General code formatting clean up

One note about backwards compatibility

If you are using any of the plugins in the plugins directory and you update to Mousetrap 1.5.0 they will break. You have to install the new versions of the plugins. This is because all the public functions are now bound to the Mousetrap prototype instead of being attached to the global object.

Downloads

1.4.6

@ccampbell ccampbell released this Nov 14, 2013 · 32 commits to master since this release

  • Fix warnings in Chrome 31 for event.returnValue

Downloads

1.4.4

@ccampbell ccampbell released this Jul 3, 2013 · 42 commits to master since this release

Downloads

1.4.3

@ccampbell ccampbell released this Jul 3, 2013 · 45 commits to master since this release

  • Fix issue where keypress event could break sequence if next expected event is keypress #140
  • Fix issue where spacebar could break sequences

Downloads

1.4.2

@ccampbell ccampbell released this Jun 21, 2013 · 54 commits to master since this release

  • Make sure that keyup events work for the 0 key

Downloads

Something went wrong with that request. Please try again.