Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)