react-keybindings
Advanced tools
Comparing version 1.0.10 to 1.1.0
{ | ||
"name": "react-keybindings", | ||
"version": "1.0.10", | ||
"version": "1.1.0", | ||
"description": "Add keybindings in React apps", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -23,3 +23,3 @@ # React Keybindings | ||
It returns a React component class that injects `pressedKeys` and `keyActions` into your component. | ||
It returns a React component class that injects `keyActions` into your component. | ||
@@ -34,3 +34,2 @@ ## Example | ||
handleKeyDown = () => { | ||
console.log(this.props.pressedKeys) // [17, 65] | ||
console.log(this.props.keyActions) // ["FOO"] | ||
@@ -51,5 +50,2 @@ }; | ||
App.propTypes = { | ||
pressedKeys: React.PropTypes.arrayOf( | ||
React.PropTypes.number | ||
), | ||
keyActions: React.PropTypes.arrayOf( | ||
@@ -56,0 +52,0 @@ React.PropTypes.string |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20356
63