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

react-hotkeys-hook

Package Overview
Dependencies
Maintainers
1
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-hotkeys-hook - npm Package Compare versions

Comparing version 4.0.0-7 to 4.0.0

6

dist/HotkeysProvider.d.ts

@@ -5,6 +5,6 @@ import { Hotkey } from './types';

hotkeys: ReadonlyArray<Hotkey>;
activeScopes: string[];
enabledScopes: string[];
toggleScope: (scope: string) => void;
activateScope: (scope: string) => void;
deactivateScope: (scope: string) => void;
enableScope: (scope: string) => void;
disableScope: (scope: string) => void;
};

@@ -11,0 +11,0 @@ export declare const useHotkeysContext: () => HotkeysContextType;

{
"name": "react-hotkeys-hook",
"version": "4.0.0-7",
"version": "4.0.0",
"repository": "https://JohannesKlauss@github.com/JohannesKlauss/react-keymap-hook.git",

@@ -5,0 +5,0 @@ "homepage": "https://johannesklauss.github.io/react-hotkeys-hook/",

@@ -13,3 +13,3 @@ <hr>

<a aria-label="Types" href="https://www.npmjs.com/package/react-hotkeys-hook">
<img alt="Types" src="https://img.shields.io/npm/types/react-use-system-color-mode?style=for-the-badge&labelColor=24292e">
<img alt="Types" src="https://img.shields.io/npm/types/react-hotkeys-hook?style=for-the-badge&labelColor=24292e">
</a>

@@ -47,3 +47,3 @@ <a aria-label="NPM version" href="https://www.npmjs.com/package/react-hotkeys-hook">

const [count, setCount] = useState(0)
useHotkeys('ctrl+k', () => setCount(prevCount => prevCount + 1))
useHotkeys('ctrl+k', () => setCount(count + 1), [count])

@@ -217,13 +217,8 @@ return (

Project Link: [https://github.com/JohannesKlauss/react-hotkeys-hook](https://github.com/JohannesKlauss/react-use-system-color-mode)
Project Link: [https://github.com/JohannesKlauss/react-hotkeys-hook](https://github.com/JohannesKlauss/react-hotkeys-hook)
## Contributors
* [bernatmv](https://github.com/bernatmv)
* [wheeler](https://github.com/wheeler)
* [louisrli](https://github.com/louisrli)
* [jameschao](https://github.com/jameschao)
* [hmafzal](https://github.com/hmafzal)
* [godspeedelbow](https://github.com/godspeedelbow)
* [JoshuaKGoldberg](https://github.com/JoshuaKGoldberg)
* [ggascoigne](https://github.com/ggascoigne)
<a href="https://github.com/johannesklauss/react-hotkeys-hook/graphs/contributors">
<img src="https://contrib.rocks/image?repo=johannesklauss/react-hotkeys-hook" />
</a>

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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