mousetrap v1.5.0 Release Notes

Release Date: 2015-03-28 // about 9 years ago
  • 🚀 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.