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

https://github.com/jasminmif/react-tab-hotkey-replacer

React component which can replace the Tab Key behavior with enter or another keyboard key
https://github.com/jasminmif/react-tab-hotkey-replacer

hotkey hotkey-replacer react react-hotkey react-hotkeys react-tab-hotkey react-tab-hotkey-replacer tab-enter tab-hotkey-replacer tab-to-enter

Last synced: 11 months ago
JSON representation

React component which can replace the Tab Key behavior with enter or another keyboard key

Awesome Lists containing this project

README

          

# react-tab-hotkey-replacer

Is a simple react component which can replace the Tab Key behavior with enter or another keyboard key

## Basic Usage

```javascript
import React, { Component } from 'react';
import ReactTabHotkeyReplacer from 'react-tab-hotkey-replacer';

class App extends Component {
showAlert() {
alert(1);
}

render() {
return (


{/* If no shortcut prop is assigned, default will be enter */}






);
}
}

export default App;
```

### Available shortcuts

Default shortcut is enter key, but you can change it to any keyboard key like: ctrl, space, shift, or a aphanumerical type: e or 0

## Install

##### npm

```
npm install react-tab-hotkey-replacer --save
```

## Authorship

All credit, and many thanks, goes to [Jasmin Miftari](https://github.com/jasminmif) for the inception of `react-tab-hotkey-replacer` and all versions before `1.0.0`.