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

use-keyboard-shortcut

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-keyboard-shortcut - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

6

lib/useKeyboardShortcut.js

@@ -14,2 +14,5 @@ import { useEffect, useCallback, useReducer } from "react";

return keyUpState;
case "reset-keys":
const resetState = { ...action.data };
return resetState;
default:

@@ -85,3 +88,4 @@ return state;

if (!Object.values(keys).filter(value => !value).length) {
callback(keys)
callback(keys);
setKeys({ type: "reset-keys", data: initalKeyMapping });
} else {

@@ -88,0 +92,0 @@ setKeys({ type: null })

2

package.json
{
"name": "use-keyboard-shortcut",
"version": "1.0.5",
"version": "1.0.6",
"description": "A custom React hook for adding keyboard shortcuts to your application",

@@ -5,0 +5,0 @@ "main": "index.js",

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