Skip to content

Releases: ccampbell/mousetrap

1.6.5

23 Jan 21:50
Compare
Choose a tag to compare
  • Actually fixed bind global plugin in node environment (#470)

1.6.4

23 Jan 15:32
Compare
Choose a tag to compare
  • Fixed bind global plugin in node js environments (#465)

1.6.3

04 Mar 17:13
Compare
Choose a tag to compare
  • Fixed issue where callbacks were incorrectly fired from input fields in shadow DOM (#245)
  • Updated tests to run using npm dependencies

1.6.2

02 Jun 13:17
Compare
Choose a tag to compare
  • Updated version to publish new License to NPM

1.6.1

02 Apr 19:44
Compare
Choose a tag to compare
  • Fixed issue where mousetrap did not work with numpad 0 key

1.6.0

29 May 13:08
Compare
Choose a tag to compare
  • Updated to not fail when included in server side environments
  • Added Mousetrap.addKeycodes method for adding custom keyCodes not defined in the existing map

1.5.3

02 Jul 20:38
Compare
Choose a tag to compare
  • Fixes issue with _belongsTo when using web components

1.5.2

30 Mar 14:59
Compare
Choose a tag to compare
  • Fixes broken AMD support introduced in version 1.5.0

1.5.1

28 Mar 18:59
Compare
Choose a tag to compare

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

1.5.0

28 Mar 18:45
Compare
Choose a tag to compare

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.