0.0.1 • Published 7 years ago

react-input-shortcut v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

react-input-shortcut

Build Status

Make typing shortcut keys easily.

Description

With this component, you can type shortcut keys (i.e. 'Ctrl+Q', 'Ctrl+Alt+Q', ...) easily.
For example, if you want to type 'Ctrl+Q', only you have to do is hit 'Q' key with 'Ctrl'.

Installation

$ npm install --save react-input-shortcut
or
$ yarn add react-input-shortcut

Usage

import React, { Component } from 'react';

import InputShortcut from 'react-input-shortcut';

class App extends Component {
  render() {
    return (
      <div className="App">
        <InputShortcut />
      </div>
    );
  }
}

API

APIEffect
allowNumberEnable using number(i.e. 'Ctrl+1')

LICENSE

MIT