Repository: soska/react-keyboardist Branch: master Commit: 4527090d9231 Files: 16 Total size: 148.3 KB Directory structure: gitextract_omz1lb_f/ ├── .babelrc ├── .flowconfig ├── .gitignore ├── .npmignore ├── LICENSE ├── README.md ├── docs/ │ ├── bundle.js │ └── index.html ├── package.json ├── src/ │ ├── docs/ │ │ ├── index.html │ │ ├── index.jsx │ │ └── styles.css │ └── lib/ │ ├── global.js │ ├── index.jsx │ └── input.js └── webpack.config.js ================================================ FILE CONTENTS ================================================ ================================================ FILE: .babelrc ================================================ { "presets": ["flow","env", "react"], "plugins": [ "transform-object-rest-spread", "transform-class-properties" ] } ================================================ FILE: .flowconfig ================================================ [ignore] [include] [libs] [lints] [options] [strict] ================================================ FILE: .gitignore ================================================ .DS_Store *.log node_modules dist es ================================================ FILE: .npmignore ================================================ docs src .babelrc webpack.config.js ================================================ FILE: LICENSE ================================================ MIT License Copyright (c) 2018 Armando Sosa Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ # 🎹 React Keyboardist ![](assets/cover.png) React Keyboardist offers a simple and declarative way to add keyboard shortcuts to your react applications. It is just a React Wrapper for [🎹Keyboardist](https://github.com/soska/keyboardist.js). [Click here for a simple demo](http://soska.github.io/react-keyboardist/docs/index.html) ## TOC * [Installation](#installation) * [Global Listener](#global) * [How to Use](#how-to-use) * [Other Events](#other-events) * [Multiple Listeners For A Key](#multiple-listeners) * [Event Monitor](#monitor) * [KeyboardInput](#keyboard-input) * [How to Use](#how-to-use-input) * [Textarea](#textarea) * [Examples](#examples) * [Integration with React Router](#react-router) ## Installation ``` $ yarn add react-keyboardist or $ npm install --save react-keyboardist ``` ## Global Listener The default export `` provides a global listener attached to the document element that will listen for every key event except those that happen inside input elements (e.g. ``,`