Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soorajshankar/react-keyboard-listener
Keyboard event listener component for react js applications.
https://github.com/soorajshankar/react-keyboard-listener
Last synced: 3 days ago
JSON representation
Keyboard event listener component for react js applications.
- Host: GitHub
- URL: https://github.com/soorajshankar/react-keyboard-listener
- Owner: soorajshankar
- License: mit
- Created: 2019-10-02T04:34:56.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T07:55:19.000Z (about 2 years ago)
- Last Synced: 2024-10-16T19:15:11.939Z (2 months ago)
- Language: JavaScript
- Size: 1.38 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 33
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-keyboard-listener
> Keyboard event listener component for react js applications.
[![NPM](https://img.shields.io/npm/v/react-keyboard-listener.svg)](https://www.npmjs.com/package/react-keyboard-listener) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
## Install
```bash
npm install --save react-keyboard-listener
```## Usage
```jsx
import React, { Component } from "react";import KeyboardListener from "react-keyboard-listener";
class MyComponent extends Component {
onkeyDown = keyEvent => console.log(keyEvent);
render() {
return (
Add your components here.
);
}
}
```
## Example Project
https://github.com/soorajshankar/react-keyslistener/tree/master/example## Demo
https://soorajshankar.github.io/react-keyboard-listener/## License
MIT © [Sooraj Sanker](https://github.com/soorajshankar)