Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-keybindings

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-keybindings - npm Package Compare versions

Comparing version 1.0.10 to 1.1.0

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc