GitPedia
ccampbell

ccampbell/mousetrap

Simple library for handling keyboard shortcuts in Javascript

14 Releases
Latest: 6y ago
1.6.5Latest
ccampbellccampbell·6y ago·January 23, 2020
GitHub

📋 Changes

  • Actually fixed bind global plugin in node environment (#470)
1.6.4
ccampbellccampbell·6y ago·January 23, 2020
GitHub

📋 Changes

  • Fixed bind global plugin in node js environments (#465)
1.6.3
ccampbellccampbell·7y ago·March 4, 2019
GitHub

📋 Changes

  • Fixed issue where callbacks were incorrectly fired from input fields in shadow DOM (#245)
  • Updated tests to run using npm dependencies
1.6.2
ccampbellccampbell·8y ago·June 2, 2018
GitHub

📋 Changes

  • Updated version to publish new License to NPM
1.6.1
ccampbellccampbell·9y ago·April 2, 2017
GitHub

📋 Changes

  • Fixed issue where mousetrap did not work with numpad 0 key
1.6.0
ccampbellccampbell·10y ago·May 29, 2016
GitHub

📋 Changes

  • 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
ccampbellccampbell·10y ago·July 2, 2015
GitHub

📋 Changes

  • Fixes issue with _belongsTo when using web components
1.5.2
ccampbellccampbell·11y ago·March 30, 2015
GitHub

📋 Changes

  • Fixes broken AMD support introduced in version 1.5.0
1.5.1
ccampbellccampbell·11y ago·March 28, 2015
GitHub

📋 Changes

  • 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
ccampbellccampbell·11y ago·March 28, 2015
GitHub

📋 Changes

  • 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)
  • 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
1.4.6
ccampbellccampbell·12y ago·November 14, 2013
GitHub

📋 Changes

  • Fix warnings in Chrome 31 for event.returnValue
1.4.4
ccampbellccampbell·12y ago·July 3, 2013
GitHub

📋 Changes

  • Really fix #140
1.4.3
ccampbellccampbell·12y ago·July 3, 2013
GitHub

📋 Changes

  • Fix issue where `keypress` event could break sequence if next expected event is `keypress` #140
  • Fix issue where spacebar could break sequences
1.4.2
ccampbellccampbell·12y ago·July 3, 2013
GitHub

📋 Changes

  • Make sure that `keyup` events work for the 0 key