Make typing shortcut keys easily.
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'.
$ npm install --save react-input-shortcut
or
$ yarn add react-input-shortcut
import React, { Component } from 'react';
import InputShortcut from 'react-input-shortcut';
class App extends Component {
render() {
return (
<div className="App">
<InputShortcut />
</div>
);
}
}
API | Effect |
---|---|
allowNumber | Enable using number(i.e. 'Ctrl+1') |
MIT